|
@@ -32,7 +32,7 @@
|
|
|
short-repo-name (if current-repo
|
|
short-repo-name (if current-repo
|
|
|
(db-conn/get-short-repo-name current-repo)
|
|
(db-conn/get-short-repo-name current-repo)
|
|
|
"Select a Graph")]
|
|
"Select a Graph")]
|
|
|
- [:<>
|
|
|
|
|
|
|
+ [:.app-graph-select
|
|
|
(ion/button
|
|
(ion/button
|
|
|
{:fill "clear"
|
|
{:fill "clear"
|
|
|
:mode "ios"
|
|
:mode "ios"
|
|
@@ -42,7 +42,7 @@
|
|
|
(for [repo graphs]
|
|
(for [repo graphs]
|
|
|
{:text (some-> (:url repo) (string/replace #"^logseq_db_" ""))
|
|
{:text (some-> (:url repo) (string/replace #"^logseq_db_" ""))
|
|
|
:role (:url repo)})
|
|
:role (:url repo)})
|
|
|
- [{:text "Add new graph"
|
|
|
|
|
|
|
+ [{:text "+ Add new graph"
|
|
|
:role "add-new-graph"}])]
|
|
:role "add-new-graph"}])]
|
|
|
(ui/open-modal! "Switch graph"
|
|
(ui/open-modal! "Switch graph"
|
|
|
{:type :action-sheet
|
|
{:type :action-sheet
|
|
@@ -56,7 +56,11 @@
|
|
|
(repo-handler/new-db! db-name)))
|
|
(repo-handler/new-db! db-name)))
|
|
|
(when (string/starts-with? role "logseq_db_")
|
|
(when (string/starts-with? role "logseq_db_")
|
|
|
(fstate/pub-event! [:graph/switch role])))))})))}
|
|
(fstate/pub-event! [:graph/switch role])))))})))}
|
|
|
- short-repo-name)]))
|
|
|
|
|
|
|
+ [:span.flex.items-center.gap-2.opacity-95
|
|
|
|
|
+ (ion/tabler-icon "database" {:size 20})
|
|
|
|
|
+ [:strong.overflow-hidden.text-ellipsis.block.font-bold
|
|
|
|
|
+ {:style {:max-width "40vw"}}
|
|
|
|
|
+ short-repo-name]])]))
|
|
|
|
|
|
|
|
(rum/defc bottom-tabs
|
|
(rum/defc bottom-tabs
|
|
|
[]
|
|
[]
|