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

Fixes #22572.
This commit is contained in:
Ganesh Pawar 2022-07-26 16:38:43 +05:30 committed by Tim Abbott
parent 965ed728e1
commit 544e472ec3

View File

@ -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) {