Sidebar check siteSign result

This commit is contained in:
shortcutme 2017-06-19 15:32:58 +02:00
parent 3489d5de09
commit 4088c88a56
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 14 additions and 9 deletions

View file

@ -358,7 +358,8 @@ class Sidebar extends Class
if wrapper.site_info.privatekey or wrapper.site_info.auth_address in res.signers
# Privatekey stored in users.json
wrapper.ws.cmd "siteSign", {privatekey: "stored", inner_path: inner_path, update_changed_files: true}, (res) =>
wrapper.notifications.add "sign", "done", "#{inner_path} Signed!", 5000
if res == "ok"
wrapper.notifications.add "sign", "done", "#{inner_path} Signed!", 5000
else
# Ask the user for privatekey