0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 15:39:50 -05:00

🐛 Fix team deletion flow on dashboard.

This commit is contained in:
Andrey Antukh 2021-11-24 12:45:06 +01:00
parent 896a07fa9a
commit 7e5b10eb3e

View file

@ -304,6 +304,11 @@
(st/emit! (dd/go-to-projects (:default-team-id profile))
(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
(st/emitf (modal/show
{:type :confirm
@ -321,9 +326,6 @@
:team team
:accept leave-and-reassign-fn})))
delete-fn
(st/emitf (dd/delete-team (with-meta team {:on-success on-leaved-success})))
on-delete-clicked
(st/emitf
(modal/show