mirror of
https://github.com/penpot/penpot.git
synced 2025-02-01 11:59:17 -05:00
remove warning modal when deletion of a token
This commit is contained in:
parent
fcd7a35b46
commit
316db61c8a
1 changed files with 1 additions and 7 deletions
|
@ -10,7 +10,6 @@
|
||||||
[app.common.data :as d]
|
[app.common.data :as d]
|
||||||
[app.common.data.macros :as dm]
|
[app.common.data.macros :as dm]
|
||||||
[app.main.data.events :as ev]
|
[app.main.data.events :as ev]
|
||||||
[app.main.data.modal :as modal]
|
|
||||||
[app.main.data.shortcuts :as scd]
|
[app.main.data.shortcuts :as scd]
|
||||||
[app.main.data.tokens :as dt]
|
[app.main.data.tokens :as dt]
|
||||||
[app.main.data.workspace :as dw]
|
[app.main.data.workspace :as dw]
|
||||||
|
@ -114,12 +113,7 @@
|
||||||
|
|
||||||
(mf/defc token-pill-context-menu
|
(mf/defc token-pill-context-menu
|
||||||
[{:keys [token-id]}]
|
[{:keys [token-id]}]
|
||||||
(let [delete-fn #(st/emit! (dt/delete-token token-id))
|
(let [do-delete #(st/emit! (dt/delete-token token-id))
|
||||||
do-delete #(st/emit! (modal/show
|
|
||||||
{:type :confirm
|
|
||||||
:title "Delete"
|
|
||||||
:message "Are you sure?"
|
|
||||||
:on-accept delete-fn}))
|
|
||||||
do-duplicate #(js/console.log "Duplicating")
|
do-duplicate #(js/console.log "Duplicating")
|
||||||
do-edit #(js/console.log "Editing")]
|
do-edit #(js/console.log "Editing")]
|
||||||
[:ul.context-list
|
[:ul.context-list
|
||||||
|
|
Loading…
Add table
Reference in a new issue