mirror of
https://github.com/penpot/penpot.git
synced 2025-05-06 19:15:55 +02:00
🐛 Fix team deletion flow on dashboard.
This commit is contained in:
parent
7a04f15710
commit
33c7847dfc
1 changed files with 5 additions and 3 deletions
|
@ -304,6 +304,11 @@
|
||||||
(st/emit! (dd/go-to-projects (:default-team-id profile))
|
(st/emit! (dd/go-to-projects (:default-team-id profile))
|
||||||
(dd/leave-team (with-meta params {:on-success on-leaved-success})))))
|
(dd/leave-team (with-meta params {:on-success on-leaved-success})))))
|
||||||
|
|
||||||
|
delete-fn
|
||||||
|
(fn []
|
||||||
|
(st/emit! (dd/go-to-projects (:default-team-id profile))
|
||||||
|
(dd/delete-team (with-meta team {:on-success on-leaved-success}))))
|
||||||
|
|
||||||
on-leave-clicked
|
on-leave-clicked
|
||||||
(st/emitf (modal/show
|
(st/emitf (modal/show
|
||||||
{:type :confirm
|
{:type :confirm
|
||||||
|
@ -321,9 +326,6 @@
|
||||||
:team team
|
:team team
|
||||||
:accept leave-and-reassign-fn})))
|
:accept leave-and-reassign-fn})))
|
||||||
|
|
||||||
delete-fn
|
|
||||||
(st/emitf (dd/delete-team (with-meta team {:on-success on-leaved-success})))
|
|
||||||
|
|
||||||
on-delete-clicked
|
on-delete-clicked
|
||||||
(st/emitf
|
(st/emitf
|
||||||
(modal/show
|
(modal/show
|
||||||
|
|
Loading…
Add table
Reference in a new issue