mirror of
https://github.com/penpot/penpot.git
synced 2026-08-25 22:29:03 +00:00
🐛 Fix wrong copy on disabled invite button tooltip (#11311)
This commit is contained in:
parent
7732c93541
commit
e93c419785
@ -140,23 +140,16 @@
|
||||
[:a {:on-click on-nav-settings} (tr "labels.settings")]]]]
|
||||
[:div {:class (stl/css :dashboard-buttons)}
|
||||
(when (and (or invitations-section? members-section?) (not-empty invitations))
|
||||
(let [organization (:organization team)
|
||||
owners-only-invites? (and (contains? cfg/flags :admin-console)
|
||||
organization
|
||||
(= (get-in organization [:permissions :send-invitations]) "owners"))
|
||||
title-text (if owners-only-invites?
|
||||
(tr "dashboard.invite-profile-disabled.owners-only" (:name organization))
|
||||
(tr "dashboard.invite-profile-disabled"))
|
||||
invite-button (mf/html
|
||||
[:> button* {:class (stl/css :invite-button)
|
||||
:variant "secondary"
|
||||
:on-click on-invite-member
|
||||
:disabled (not can-invite?)
|
||||
:data-testid "invite-member"}
|
||||
(tr "dashboard.invite-profile")])]
|
||||
(let [invite-button (mf/html
|
||||
[:> button* {:class (stl/css :invite-button)
|
||||
:variant "secondary"
|
||||
:on-click on-invite-member
|
||||
:disabled (not can-invite?)
|
||||
:data-testid "invite-member"}
|
||||
(tr "dashboard.invite-profile")])]
|
||||
(if can-invite?
|
||||
invite-button
|
||||
[:> tooltip* {:content title-text
|
||||
[:> tooltip* {:content (tr "dashboard.invite-profile-disabled")
|
||||
:id "invite-member-disabled-tooltip"
|
||||
:tab-index 0}
|
||||
invite-button])))]]))
|
||||
|
||||
@ -10354,7 +10354,4 @@ msgid "labels.sso-error.retry"
|
||||
msgstr "Try again"
|
||||
|
||||
msgid "dashboard.invite-profile-disabled"
|
||||
msgstr "You don't have permission to invite people to this team"
|
||||
|
||||
msgid "dashboard.invite-profile-disabled.owners-only"
|
||||
msgstr "Only team owners can invite within %s"
|
||||
msgstr "You don't have permission to invite people to this team"
|
||||
@ -9999,7 +9999,4 @@ msgid "labels.sso-error.retry"
|
||||
msgstr "Intentar de nuevo"
|
||||
|
||||
msgid "dashboard.invite-profile-disabled"
|
||||
msgstr "No tienes permiso para invitar a personas a este equipo"
|
||||
|
||||
msgid "dashboard.invite-profile-disabled.owners-only"
|
||||
msgstr "Solo los propietarios del equipo pueden invitar dentro de %s"
|
||||
msgstr "No tienes permiso para invitar a personas a este equipo"
|
||||
Loading…
x
Reference in New Issue
Block a user