mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 14:31:37 +02:00
Token theme deletion
This commit is contained in:
parent
844819a50c
commit
ec96e7918d
5 changed files with 20 additions and 17 deletions
|
@ -154,14 +154,14 @@
|
|||
(rx/of
|
||||
(dch/commit-changes changes))))))
|
||||
|
||||
(defn delete-token-theme [token-theme-id]
|
||||
(defn delete-token-theme [group name]
|
||||
(ptk/reify ::delete-token-theme
|
||||
ptk/WatchEvent
|
||||
(watch [it state _]
|
||||
(let [data (get state :workspace-data)
|
||||
changes (-> (pcb/empty-changes it)
|
||||
(pcb/with-library-data data)
|
||||
(pcb/delete-token-theme token-theme-id))]
|
||||
(pcb/delete-token-theme group name))]
|
||||
(rx/of
|
||||
(dch/commit-changes changes)
|
||||
(wtu/update-workspace-tokens))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue