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.

user profile modal: Don't close settings when opening modal.

Ganesh Pawar544e472ec339
diff --git a/static/js/settings_account.js b/static/js/settings_account.js
index 2a4d20b57d8..5ead762aff7 100644
--- a/static/js/settings_account.js
+++ b/static/js/settings_account.js
@@ -718,12 +718,12 @@ export function set_up() {
});
});
- $("#show_my_user_profile_modal").on("click", () => {
- overlays.close_overlay("settings");
+ $("#show_my_user_profile_modal").on("click", (e) => {
+ e.stopPropagation();
+ e.preventDefault();
+
const user = people.get_by_user_id(people.my_current_user_id());
- setTimeout(() => {
- user_profile.show_user_profile(user);
- }, 100);
+ user_profile.show_user_profile(user);
});
function upload_avatar($file_input) {