mirror of
https://github.com/penpot/penpot.git
synced 2026-04-27 12:18:32 +00:00
Add delete confirmation to colors collections.
This commit is contained in:
parent
aec2166759
commit
151da534c2
@ -63,8 +63,10 @@
|
||||
(dom/prevent-default e)
|
||||
(dom/stop-propagation e)
|
||||
(save))))
|
||||
(delete-collection []
|
||||
(rs/emit! (dc/delete-collection (:id coll))))]
|
||||
(delete []
|
||||
(rs/emit! (dc/delete-collection id)))
|
||||
(on-delete []
|
||||
(udl/open! :confirm {:on-accept delete}))]
|
||||
[:div.dashboard-title
|
||||
[:h2
|
||||
(if edit?
|
||||
@ -86,7 +88,7 @@
|
||||
(if edit?
|
||||
[:span {:on-click save} i/save]
|
||||
[:span {:on-click edit} i/pencil])
|
||||
[:span {:on-click delete-collection} i/trash]])])))
|
||||
[:span {:on-click on-delete} i/trash]])])))
|
||||
|
||||
;; --- Nav
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user