mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
fix(ui): the confirm dialog to uninstall plugin
This commit is contained in:
@@ -235,14 +235,11 @@
|
||||
[: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
|
||||
#(let [confirm-fn
|
||||
(ui/make-confirm-modal
|
||||
{:title (t :plugin/delete-alert name)
|
||||
:on-confirm (fn [_ {:keys [close-fn]}]
|
||||
(close-fn)
|
||||
(plugin-common-handler/unregister-plugin id)
|
||||
(plugin-config-handler/remove-plugin id))})]
|
||||
(state/set-sub-modal! confirm-fn {:center? true}))}
|
||||
#(-> (shui/dialog-confirm!
|
||||
[:b (t :plugin/delete-alert name)])
|
||||
(p/then (fn []
|
||||
(plugin-common-handler/unregister-plugin id)
|
||||
(plugin-config-handler/remove-plugin id))))}
|
||||
(t :plugin/uninstall)]]]
|
||||
|
||||
(when (seq sponsors)
|
||||
|
||||
Reference in New Issue
Block a user