mirror of
https://github.com/penpot/penpot.git
synced 2026-03-17 16:06:24 +00:00
🐛 Fix showing warning when no shape is selected (#8515)
This commit is contained in:
@@ -140,10 +140,11 @@
|
||||
(if (and not-editing? (seq selected-shapes) (not= (:type token) :number))
|
||||
(st/emit! (dwta/toggle-token {:token token
|
||||
:shape-ids selected-ids}))
|
||||
(st/emit! (ntf/show {:content (tr "workspace.tokens.error-text-edition")
|
||||
:type :toast
|
||||
:level :warning
|
||||
:timeout 3000}))))))]
|
||||
(when (seq selected-shapes)
|
||||
(st/emit! (ntf/show {:content (tr "workspace.tokens.error-text-edition")
|
||||
:type :toast
|
||||
:level :warning
|
||||
:timeout 3000})))))))]
|
||||
|
||||
[:div {:class (stl/css :token-section-wrapper)
|
||||
:data-testid (dm/str "section-" (name type))}
|
||||
|
||||
Reference in New Issue
Block a user