🐛 Display animations only for allowed actions

This commit is contained in:
Andrés Moya 2022-01-21 12:04:23 +01:00 committed by Andrey Antukh
parent 7385445aa8
commit b4c23f3554

View file

@ -433,6 +433,8 @@
[:label {:for (str "background-" index)}
(tr "workspace.options.interaction-background")]]]])
(when (cti/has-animation? interaction)
[:*
; Animation select
[:div.interactions-element.separator
[:span.element-set-subtitle.wide (tr "workspace.options.interaction-animation")]
@ -521,7 +523,7 @@
:checked (-> interaction :animation :offset-effect)
:on-change change-offset-effect}]
[:label {:for (str "offset-effect-" index)}
(tr "workspace.options.interaction-offset-effect")]]])])]]))
(tr "workspace.options.interaction-offset-effect")]]])])])]]))
(mf/defc interactions-menu
[{:keys [shape] :as props}]