0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

🐛 Fix problem running plugins from menu

This commit is contained in:
alonso.torres 2024-05-23 11:07:39 +02:00 committed by Andrey Antukh
parent fbd81e091d
commit 5af77af6da

View file

@ -629,13 +629,13 @@
(when (d/not-empty? plugins)
[:div {:class (stl/css :separator)}])
(for [[idx {:keys [name url]}] (d/enumerate plugins)]
(for [[idx {:keys [name] :as manifest}] (d/enumerate plugins)]
[:> dropdown-menu-item* {:key (dm/str "plugins-menu-" idx)
:on-click #(uwp/open-plugin! url)
:on-click #(uwp/open-plugin! manifest)
:class (stl/css :submenu-item)
:on-key-down (fn [event]
(when (kbd/enter? event)
#(uwp/open-plugin! url)))}
#(uwp/open-plugin! manifest)))}
[:span {:class (stl/css :item-name)} name]])])))
(mf/defc menu