mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 15:01:39 +02:00
🐛 Display animations only for allowed actions
This commit is contained in:
parent
7385445aa8
commit
b4c23f3554
1 changed files with 86 additions and 84 deletions
|
@ -433,6 +433,8 @@
|
||||||
[:label {:for (str "background-" index)}
|
[:label {:for (str "background-" index)}
|
||||||
(tr "workspace.options.interaction-background")]]]])
|
(tr "workspace.options.interaction-background")]]]])
|
||||||
|
|
||||||
|
(when (cti/has-animation? interaction)
|
||||||
|
[:*
|
||||||
; Animation select
|
; Animation select
|
||||||
[:div.interactions-element.separator
|
[:div.interactions-element.separator
|
||||||
[:span.element-set-subtitle.wide (tr "workspace.options.interaction-animation")]
|
[:span.element-set-subtitle.wide (tr "workspace.options.interaction-animation")]
|
||||||
|
@ -521,7 +523,7 @@
|
||||||
:checked (-> interaction :animation :offset-effect)
|
:checked (-> interaction :animation :offset-effect)
|
||||||
:on-change change-offset-effect}]
|
:on-change change-offset-effect}]
|
||||||
[:label {:for (str "offset-effect-" index)}
|
[:label {:for (str "offset-effect-" index)}
|
||||||
(tr "workspace.options.interaction-offset-effect")]]])])]]))
|
(tr "workspace.options.interaction-offset-effect")]]])])])]]))
|
||||||
|
|
||||||
(mf/defc interactions-menu
|
(mf/defc interactions-menu
|
||||||
[{:keys [shape] :as props}]
|
[{:keys [shape] :as props}]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue