|
|
@@ -169,7 +169,9 @@
|
|
|
repos (->> (state/sub [:me :repos])
|
|
|
(remove #(= (:url %) config/local-repo)))
|
|
|
electron-mac? (and util/mac? (util/electron?))
|
|
|
- electron-not-mac? (and (util/electron?) (not electron-mac?))]
|
|
|
+ electron-not-mac? (and (util/electron?) (not electron-mac?))
|
|
|
+ show-open-folder? (and (nfs/supported?) (empty? repos)
|
|
|
+ (not config/publishing?))]
|
|
|
(rum/with-context [[t] i18n/*tongue-context*]
|
|
|
[:div.cp__header#head
|
|
|
{:class (when electron-mac? "electron-mac")
|
|
|
@@ -210,8 +212,14 @@
|
|
|
[:div.repos
|
|
|
(repo/repos-dropdown nil)]
|
|
|
|
|
|
- (when (and (nfs/supported?) (empty? repos)
|
|
|
- (not config/publishing?))
|
|
|
+ (when show-open-folder?
|
|
|
+ (ui/tippy {:html [:div.font-medium "Feel free to edit anything, no change will be saved at this moment. If you do want to persist your work, click the right button to open a local directory or connect Logseq to Github."]
|
|
|
+ :interactive true
|
|
|
+ :delay [1000, 100]
|
|
|
+ :position "down"}
|
|
|
+ [:a.button (svg/warning)]))
|
|
|
+
|
|
|
+ (when show-open-folder?
|
|
|
[:a.text-sm.font-medium.button
|
|
|
{:on-click #(page-handler/ls-dir-files! shortcut/refresh!)}
|
|
|
[:div.flex.flex-row.text-center.open-button__inner.items-center
|