settings: Update disabled state of button in email change modal.

The new update_submit_disabled_state_on_change feature of the
dialog_widget component makes this simple.

Fixes #22683.
This commit is contained in:
Hardik Dharmani 2023-04-28 14:56:56 +05:30 committed by Tim Abbott
parent 96d6fda2a7
commit 69779688f0
1 changed files with 1 additions and 0 deletions

View File

@ -735,6 +735,7 @@ export function set_up() {
on_shown() { on_shown() {
ui_util.place_caret_at_end($("#change_email_form input")[0]); ui_util.place_caret_at_end($("#change_email_form input")[0]);
}, },
update_submit_disabled_state_on_change: true,
}); });
} }
}); });