mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 15:51:39 +02: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-macros [app.main.style :as stl])
|
||||||
(:require
|
(:require
|
||||||
["lodash.debounce" :as debounce]
|
["lodash.debounce" :as debounce]
|
||||||
|
[app.main.ui.workspace.tokens.update :as wtu]
|
||||||
[app.common.data :as d]
|
[app.common.data :as d]
|
||||||
[app.main.data.modal :as modal]
|
[app.main.data.modal :as modal]
|
||||||
[app.main.data.tokens :as dt]
|
[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)
|
final-description (assoc :description final-description)
|
||||||
(:id token) (assoc :id (:id token)))]
|
(:id token) (assoc :id (:id token)))]
|
||||||
(st/emit! (dt/add-token token))
|
(st/emit! (dt/add-token token))
|
||||||
|
(st/emit! (wtu/update-workspace-tokens-event))
|
||||||
(modal/hide!)))))))))]
|
(modal/hide!)))))))))]
|
||||||
[:form
|
[:form
|
||||||
{:on-submit on-submit}
|
{:on-submit on-submit}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue