Skip to content

Commit

Permalink
Send websocket event on optional file deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Oct 4, 2017
1 parent e5963f8 commit aa9e8b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/OptionalManager/UiWebsocketPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ def actionOptionalFileDelete(self, to, inner_path, address=None):
site.storage.delete(inner_path)
except Exception as err:
return self.response(to, {"error": "File delete error: %s" % err})
site.updateWebsocket(file_delete=inner_path)

self.response(to, "ok")

Expand Down

0 comments on commit aa9e8b0

Please sign in to comment.