enhance(ui): support hide close button option for the shui dialog

This commit is contained in:
charlie
2024-06-26 10:01:54 +08:00
parent 0c2dd53c2f
commit d278067f8c
5 changed files with 19 additions and 11 deletions

View File

@@ -981,7 +981,7 @@
(ui/button [:span (t :plugin/install)]
:on-click #(do
(plugin-config-handler/replace-plugins plugins)
(state/close-sub-modal! "ls-plugins-from-file-modal")))]]
(shui/dialog-close! "ls-plugins-from-file-modal")))]]
;; all done
[:div.py-4 [:strong.text-xl (str "\uD83C\uDF89 " (t :plugin.install-from-file/success))]])])
@@ -1414,11 +1414,10 @@
(defn open-plugins-from-file-modal!
[plugins]
(state/set-sub-modal!
(fn [_close!]
(shui/dialog-open!
(fn []
(plugins-from-file plugins))
{:center? true
:id "ls-plugins-from-file-modal"}))
{:id "ls-plugins-from-file-modal"}))
(defn open-focused-settings-modal!
[title]