mirror of
https://github.com/penpot/penpot.git
synced 2026-03-29 15:52:17 +02:00
✨ Update delete team modal when in org
This commit is contained in:
@@ -516,14 +516,19 @@
|
||||
|
||||
on-delete-clicked
|
||||
(mf/use-fn
|
||||
(mf/deps delete-fn)
|
||||
#(st/emit!
|
||||
(modal/show
|
||||
{:type :confirm
|
||||
:title (tr "modals.delete-team-confirm.title")
|
||||
:message (tr "modals.delete-team-confirm.message")
|
||||
:accept-label (tr "modals.delete-team-confirm.accept")
|
||||
:on-accept delete-fn})))]
|
||||
(mf/deps team delete-fn)
|
||||
(fn []
|
||||
(let [is-org-team? (some? (:organization-id team))
|
||||
message (if is-org-team?
|
||||
(tr "modals.delete-org-team-confirm.message" (:organization-name team))
|
||||
(tr "modals.delete-team-confirm.message"))]
|
||||
(st/emit!
|
||||
(modal/show
|
||||
{:type :confirm
|
||||
:title (tr "modals.delete-team-confirm.title")
|
||||
:message message
|
||||
:accept-label (tr "modals.delete-team-confirm.accept")
|
||||
:on-accept delete-fn})))))]
|
||||
[:> dropdown-menu* props
|
||||
|
||||
[:> dropdown-menu-item* {:on-click go-members
|
||||
|
||||
@@ -8950,3 +8950,6 @@ msgstr "Autosaved versions will be kept for %s days."
|
||||
#, unused
|
||||
msgid "workspace.viewport.click-to-close-path"
|
||||
msgstr "Click to close the path"
|
||||
|
||||
msgid "modals.delete-org-team-confirm.message"
|
||||
msgstr "Are you sure you want to delete this team that is part of %s org?"
|
||||
@@ -8783,3 +8783,6 @@ msgstr "Los autoguardados duran %s días."
|
||||
#, unused
|
||||
msgid "workspace.viewport.click-to-close-path"
|
||||
msgstr "Pulsar para cerrar la ruta"
|
||||
|
||||
msgid "modals.delete-org-team-confirm.message"
|
||||
msgstr "¿Estás seguro de que deseas eliminar este equipo que forma parte de la organización %s?"
|
||||
|
||||
Reference in New Issue
Block a user