mirror of
https://github.com/penpot/penpot.git
synced 2025-04-12 15:01:28 -05:00
Update tokens after shape update
This commit is contained in:
parent
e52623c728
commit
68415b6668
1 changed files with 2 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
(:require-macros [app.main.style :as stl])
|
||||
(:require
|
||||
["lodash.debounce" :as debounce]
|
||||
[app.main.ui.workspace.tokens.update :as wtu]
|
||||
[app.common.data :as d]
|
||||
[app.main.data.modal :as modal]
|
||||
[app.main.data.tokens :as dt]
|
||||
|
@ -246,6 +247,7 @@ Token names should only contain letters and digits separated by . characters.")}
|
|||
final-description (assoc :description final-description)
|
||||
(:id token) (assoc :id (:id token)))]
|
||||
(st/emit! (dt/add-token token))
|
||||
(st/emit! (wtu/update-workspace-tokens-event))
|
||||
(modal/hide!)))))))))]
|
||||
[:form
|
||||
{:on-submit on-submit}
|
||||
|
|
Loading…
Add table
Reference in a new issue