Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user_profile: Use "Edit profile" label for user's own profile.
whilstsomebodyf5af6f9d7f94
diff --git a/web/src/user_profile.ts b/web/src/user_profile.tsindex 72b69643516..f7ff13a1aed 100644--- a/web/src/user_profile.ts+++ b/web/src/user_profile.ts@@ -750,7 +750,9 @@ export function show_user_profile(user: User, default_tab_key = "profile-tab"):if (can_manage_profile) {const manage_profile_label = user.is_bot? $t({defaultMessage: "Manage bot"})- : $t({defaultMessage: "Manage user"});+ : people.is_my_user_id(user.user_id)+ ? $t({defaultMessage: "Edit profile"})+ : $t({defaultMessage: "Manage user"});const manage_profile_tab = {label: manage_profile_label,key: "manage-profile-tab",diff --git a/web/templates/user_profile_modal.hbs b/web/templates/user_profile_modal.hbsindex ea0bf4c8849..5140f4ddce6 100644--- a/web/templates/user_profile_modal.hbs+++ b/web/templates/user_profile_modal.hbs@@ -22,7 +22,7 @@{{> components/icon_button custom_classes="copy-link-to-user-profile tippy-zulip-delayed-tooltip" icon="link-alt" intent="neutral" data-tippy-content=(t "Copy link to profile") aria-label=(t "Copy link to profile") }}{{#if is_me}}{{#if can_manage_profile}}- {{> components/icon_button custom_classes="user-profile-manage-others-edit-button tippy-zulip-delayed-tooltip" icon="edit" intent="neutral" data-tippy-content=(t "Manage user") aria-label=(t "Manage user") }}+ {{> components/icon_button custom_classes="user-profile-manage-others-edit-button tippy-zulip-delayed-tooltip" icon="edit" intent="neutral" data-tippy-content=(t "Edit profile") aria-label=(t "Edit profile") }}{{else}}{{> components/icon_button custom_classes="user-profile-manage-own-edit-button tippy-zulip-delayed-tooltip" icon="edit" intent="neutral" data-tippy-content=(t "Edit profile") aria-label=(t "Edit profile") }}{{/if}}