Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user_profile: Replace the id with class for pencil button.
palashb011c049ab5f4b1
diff --git a/web/src/user_profile.js b/web/src/user_profile.jsindex 36aa9ad4b7f..282b15abe83 100644--- a/web/src/user_profile.js+++ b/web/src/user_profile.js@@ -529,17 +529,18 @@ export function register_click_handlers() {$("body").on("click",- "#user-profile-modal #name #user_profile_manage_others_edit_button",+ "#user-profile-modal #name .user_profile_manage_others_edit_button",(e) => {show_manage_user_tab("manage-profile-tab");e.stopPropagation();e.preventDefault();},);+/* These click handlers are implemented as just deep links to the* relevant part of the Zulip UI, so we don't want preventDefault,* but we do want to close the modal when you click them. */- $("body").on("click", "#user-profile-modal #name #user_profile_manage_own_edit_button", () => {+ $("body").on("click", "#user-profile-modal #name .user_profile_manage_own_edit_button", () => {hide_user_profile();});diff --git a/web/styles/modal.css b/web/styles/modal.cssindex e98654a2df8..9cd6baec7a4 100644--- a/web/styles/modal.css+++ b/web/styles/modal.css@@ -68,7 +68,7 @@text-overflow: ellipsis;}- #user_profile_manage_others_edit_button {+ .user_profile_manage_others_edit_button {color: hsl(200deg 100% 50%);cursor: pointer;diff --git a/web/styles/popovers.css b/web/styles/popovers.cssindex 91b88a68184..f696d5516cb 100644--- a/web/styles/popovers.css+++ b/web/styles/popovers.css@@ -459,8 +459,8 @@ ul {}}- #user_profile_manage_own_edit_button,- #user_profile_manage_others_edit_button {+ .user_profile_manage_own_edit_button,+ .user_profile_manage_others_edit_button {width: 25px;text-align: center;font-size: 18px;diff --git a/web/templates/user_profile_modal.hbs b/web/templates/user_profile_modal.hbsindex ae70509552a..4296272cac8 100644--- a/web/templates/user_profile_modal.hbs+++ b/web/templates/user_profile_modal.hbs@@ -14,11 +14,11 @@<span class="user_profile_name">{{full_name}}</span>{{#if is_me}}<a href="/#settings/profile">- <i class="fa fa-edit" id="user_profile_manage_own_edit_button" aria-hidden="true"></i>+ <i class="fa fa-edit user_profile_manage_own_edit_button" aria-hidden="true"></i></a>{{/if}}{{#if can_manage_profile}}- <i class="fa fa-edit" id="user_profile_manage_others_edit_button" aria-hidden="true"></i>+ <i class="fa fa-edit user_profile_manage_others_edit_button" aria-hidden="true"></i>{{/if}}</h1><button class="modal__close" aria-label="{{t 'Close modal' }}" data-micromodal-close></button>