mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 19:06:21 +00:00
improve(plugin): fetch marketplace plugins list via system proxy if no proxy configured. (#5716)
This commit is contained in:
@@ -440,14 +440,13 @@
|
||||
|
||||
[:div.flex.items-center.r
|
||||
;; extra info
|
||||
(let [{:keys [protocol host port]} agent-opts]
|
||||
(when (every? not-empty [protocol host port])
|
||||
(ui/button
|
||||
[:span.flex.items-center.text-indigo-500
|
||||
(ui/icon "world-download") (str protocol "://" host ":" port)]
|
||||
:small? true
|
||||
:intent "link"
|
||||
:on-click #(state/pub-event! [:go/proxy-settings agent-opts]))))
|
||||
(when-let [proxy-val (state/http-proxy-enabled-or-val?)]
|
||||
(ui/button
|
||||
[:span.flex.items-center.text-indigo-500
|
||||
(ui/icon "world-download") proxy-val]
|
||||
:small? true
|
||||
:intent "link"
|
||||
:on-click #(state/pub-event! [:go/proxy-settings agent-opts])))
|
||||
|
||||
;; search
|
||||
(panel-tab-search search-key *search-key *search-ref)
|
||||
|
||||
Reference in New Issue
Block a user