DEV: Reload page to properly update encryption status.

DEV: Reload page to properly update encryption status.

diff --git a/assets/javascripts/discourse/controllers/activate-encrypt.js.es6 b/assets/javascripts/discourse/controllers/activate-encrypt.js.es6
index edbaa61..8524a2b 100644
--- a/assets/javascripts/discourse/controllers/activate-encrypt.js.es6
+++ b/assets/javascripts/discourse/controllers/activate-encrypt.js.es6
@@ -5,6 +5,7 @@ import {
   importPublicKey
 } from "discourse/plugins/discourse-encrypt/lib/keys";
 import { saveKeyPairToIndexedDb } from "discourse/plugins/discourse-encrypt/lib/keys_db";
+import { reload } from "discourse/plugins/discourse-encrypt/lib/discourse";
 
 export default Ember.Controller.extend(ModalFunctionality, {
   onShow() {
@@ -62,6 +63,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
           });
           this.set("models", null);
           this.send("closeModal");
+          reload();
         })
 
         .catch(() =>

GitHub sha: aa59f5e2

1 Like