|
|
@@ -250,6 +250,7 @@
|
|
|
[:ul.menu-list
|
|
|
[:li {:on-click #(plugin-handler/open-plugin-settings! id false)} (t :plugin/open-settings)]
|
|
|
[:li {:on-click #(js/apis.openPath url)} (t :plugin/open-package)]
|
|
|
+ [:li {:on-click #(plugin-handler/open-report-modal! id name)} (t :plugin/report-security)]
|
|
|
[:li {:on-click
|
|
|
#(-> (shui/dialog-confirm!
|
|
|
[:b (t :plugin/delete-alert name)])
|
|
|
@@ -607,9 +608,10 @@
|
|
|
[{:title [:span.flex.items-center.gap-1 (ui/icon "arrow-down-circle") (t :plugin.install-from-file/menu-title)]
|
|
|
:options {:on-click plugin-config-handler/open-replace-plugins-modal}}]
|
|
|
|
|
|
+ [{:hr true}]
|
|
|
+
|
|
|
(when (state/developer-mode?)
|
|
|
- [{:hr true}
|
|
|
- {:title [:span.flex.items-center.gap-1 (ui/icon "file-code") (t :plugin/open-preferences)]
|
|
|
+ [{:title [:span.flex.items-center.gap-1 (ui/icon "file-code") (t :plugin/open-preferences)]
|
|
|
:options {:on-click
|
|
|
#(p/let [root (plugin-handler/get-ls-dotdir-root)]
|
|
|
(js/apis.openPath (str root "/preferences.json")))}}
|
|
|
@@ -619,6 +621,9 @@
|
|
|
#(p/let [root (plugin-handler/get-ls-dotdir-root)]
|
|
|
(js/apis.openPath root))}}])
|
|
|
|
|
|
+ [{:title [:span.flex.items-center.gap-1 (ui/icon "alert-triangle") (t :plugin/report-security)]
|
|
|
+ :options {:on-click #(plugin-handler/open-report-modal!)}}]
|
|
|
+
|
|
|
[{:hr true :key "dropdown-more"}
|
|
|
{:title (auto-check-for-updates-control)}])]
|
|
|
|