diff options
Diffstat (limited to 'rrdtool-controller.lua')
-rw-r--r-- | rrdtool-controller.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rrdtool-controller.lua b/rrdtool-controller.lua index 56b9a1e..e565c51 100644 --- a/rrdtool-controller.lua +++ b/rrdtool-controller.lua @@ -32,3 +32,8 @@ function createrrd(self) return controllerfunctions.handle_form(self, self.model.createnewrrd, self.model.write_file, self.clientdata, "Save", "Edit Interfaces file", "File saved") end + +function delete(self) + return self:redirect_to_referrer(self.model.remove_file(self, self.clientdata.filename, sessiondata.userinfo.userid)) +end + |