mirror of https://github.com/logseq/logseq
fix: graphs view showing logseq_db_ prefix
parent
5e547a1663
commit
599e19f131
|
@ -22,9 +22,9 @@
|
|||
(rum/defc normalized-graph-label
|
||||
[{:keys [url remote? GraphName GraphUUID] :as graph} on-click]
|
||||
(when graph
|
||||
(let [local? (config/local-file-based-graph? url)]
|
||||
[:span.flex.items-center
|
||||
(if local?
|
||||
(if (or (config/local-file-based-graph? url)
|
||||
(config/db-based-graph? url))
|
||||
(let [local-dir (config/get-local-dir url)
|
||||
graph-name (text-util/get-graph-name-from-path url)]
|
||||
[:a.flex.items-center {:title local-dir
|
||||
|
@ -35,7 +35,7 @@
|
|||
[:a.flex.items-center {:title GraphUUID
|
||||
:on-click #(on-click graph)}
|
||||
(db/get-repo-path (or url GraphName))
|
||||
(when remote? [:strong.pl-1.flex.items-center (ui/icon "cloud")])])])))
|
||||
(when remote? [:strong.pl-1.flex.items-center (ui/icon "cloud")])])]))
|
||||
|
||||
(rum/defc repos-inner
|
||||
"Graph list in `All graphs` page"
|
||||
|
|
Loading…
Reference in New Issue