Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

api_key_modal: Update the modal config for `on_show`.

Ganesh Pawar79bdd8bdb6c7
diff --git a/static/js/settings_account.js b/static/js/settings_account.js
index fe25771543f..a2dfe8e6bb9 100644
--- a/static/js/settings_account.js
+++ b/static/js/settings_account.js
@@ -396,10 +396,8 @@ export function set_up() {
overlays.open_modal("api_key_modal", {
autoremove: true,
micromodal: true,
- micromodal_opts: {
- onShow: () => {
- $("#get_api_key_password").trigger("focus");
- },
+ on_show: () => {
+ $("#get_api_key_password").trigger("focus");
},
});
e.preventDefault();