mirror of
https://github.com/penpot/penpot.git
synced 2026-05-30 04:08:08 +00:00
📎 Code review
This commit is contained in:
parent
8542d44aaa
commit
04d4abc766
@ -215,7 +215,8 @@
|
||||
(->> (rp/cmd! ::remove-team-from-org {:team-id team-id :organization-id organization-id :organization-name organization-name})
|
||||
(rx/mapcat
|
||||
(fn [_]
|
||||
(rx/of (modal/hide))))
|
||||
(rx/of (dt/fetch-teams)
|
||||
(modal/hide))))
|
||||
(rx/catch
|
||||
(fn [cause]
|
||||
(let [code (-> cause ex-data :code)]
|
||||
@ -245,13 +246,13 @@
|
||||
(modal/show
|
||||
{:type :confirm
|
||||
:title (tr "modals.remove-team-org.title")
|
||||
:message (tr "modals.remove-team-org.text" (:name team) (dm/get-in team [:organization :name]))
|
||||
:message (tr "modals.remove-team-org.text" (:name team) (:name source-org))
|
||||
:hint (tr "modals.remove-team-org.info")
|
||||
:hint-level :default
|
||||
:accept-label (tr "modals.remove-team-org.accept")
|
||||
:on-accept #(st/emit! (remove-team-from-org {:team-id team-id
|
||||
:organization-id (dm/get-in team [:organization :id])
|
||||
:organization-name (dm/get-in team [:organization :name])}))
|
||||
:organization-id (:id source-org)
|
||||
:organization-name (:name source-org)}))
|
||||
:accept-style :danger})
|
||||
(modal/show :no-permission-modal {:type :no-orgs-change}))))))))))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user