Update delete team modal when in org

This commit is contained in:
María Valderrama 2026-03-27 11:13:37 +01:00
parent 8cc6c40b87
commit 7f228e58c6
3 changed files with 19 additions and 8 deletions

View File

@ -516,14 +516,19 @@
on-delete-clicked on-delete-clicked
(mf/use-fn (mf/use-fn
(mf/deps delete-fn) (mf/deps team delete-fn)
#(st/emit! (fn []
(modal/show (let [is-org-team? (some? (:organization-id team))
{:type :confirm message (if is-org-team?
:title (tr "modals.delete-team-confirm.title") (tr "modals.delete-org-team-confirm.message" (:organization-name team))
:message (tr "modals.delete-team-confirm.message") (tr "modals.delete-team-confirm.message"))]
:accept-label (tr "modals.delete-team-confirm.accept") (st/emit!
:on-accept delete-fn})))] (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* props
[:> dropdown-menu-item* {:on-click go-members [:> dropdown-menu-item* {:on-click go-members

View File

@ -8950,3 +8950,6 @@ msgstr "Autosaved versions will be kept for %s days."
#, unused #, unused
msgid "workspace.viewport.click-to-close-path" msgid "workspace.viewport.click-to-close-path"
msgstr "Click to close the 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?"

View File

@ -8783,3 +8783,6 @@ msgstr "Los autoguardados duran %s días."
#, unused #, unused
msgid "workspace.viewport.click-to-close-path" msgid "workspace.viewport.click-to-close-path"
msgstr "Pulsar para cerrar la ruta" 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?"