Update sidebar html on dbReload

This commit is contained in:
ZeroNet 2016-08-10 12:53:15 +02:00
parent 9a1e1e56b3
commit 131a51fbdc

View file

@ -248,7 +248,10 @@ class Sidebar extends Class
# Database reload
@tag.find("#button-dbreload").off("click").on "click", =>
wrapper.ws.cmd "dbReload", [], =>
wrapper.notifications.add "done-sitelimit", "done", "Database schema reloaded", 5000
wrapper.notifications.add "done-dbreload", "done", "Database schema reloaded", 5000
@updateHtmlTag()
return false
# Database rebuild
@tag.find("#button-dbrebuild").off("click").on "click", =>
wrapper.notifications.add "done-dbrebuild", "info", "Database rebuilding...."