mirror of
https://github.com/zulip/zulip.git
synced 2025-10-22 20:42:14 +00:00
user_profile: Use "Edit profile" label for user's own profile.
This commit renames tab heading, tooltip and aria-label for the pencil edit icon in the profile modal header from "Manage user" to "Edit profile" for admin's own profile. Fixes part of #34830.
This commit is contained in:
committed by
Tim Abbott
parent
c58ae7f4f0
commit
f5af6f9d7f
@@ -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",
|
||||
|
@@ -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}}
|
||||
|
Reference in New Issue
Block a user