mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 19:06:09 +00:00
setup: Add setter for password_change_in_progress.
After migration to an ES6 module, `password_change_in_progress` would no longer be mutable from outside the module. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
30d7090621
commit
7408f6bd3d
@@ -448,14 +448,14 @@ exports.set_up = function () {
|
||||
}
|
||||
}
|
||||
|
||||
setup.password_change_in_progress = true;
|
||||
setup.set_password_change_in_progress(true);
|
||||
const opts = {
|
||||
success_continuation() {
|
||||
setup.password_change_in_progress = false;
|
||||
setup.set_password_change_in_progress(false);
|
||||
overlays.close_modal("#change_password_modal");
|
||||
},
|
||||
error_continuation() {
|
||||
setup.password_change_in_progress = false;
|
||||
setup.set_password_change_in_progress(false);
|
||||
},
|
||||
error_msg_element: change_password_error,
|
||||
};
|
||||
|
||||
@@ -4,6 +4,11 @@ const util = require("./util");
|
||||
|
||||
// Miscellaneous early setup.
|
||||
exports.password_change_in_progress = false;
|
||||
|
||||
exports.set_password_change_in_progress = function (value) {
|
||||
exports.password_change_in_progress = value;
|
||||
};
|
||||
|
||||
$(() => {
|
||||
if (util.is_mobile()) {
|
||||
// Disable the tutorial; it's ugly on mobile.
|
||||
|
||||
Reference in New Issue
Block a user