浏览代码

Do not close form for immediate visual feedback on password change

Johannes Zellner 1 年之前
父节点
当前提交
7ebdd1b68b
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      config/accounts.js

+ 3 - 4
config/accounts.js

@@ -126,10 +126,9 @@ AccountsTemplates.configure({
 
 AccountsTemplates.configureRoute('changePwd', {
   redirect() {
-    // XXX We should emit a notification once we have a notification system.
-    // Currently the user has no indication that his modification has been
-    // applied.
-    Popup.back();
+    // We should go back with the popup but we don't since user feedback about the change is within the popup only.
+    // Once we have a global feedback popup mechanism we can use that here and close with the following:
+    // Popup.back();
   },
 });