Browse Source

chore: only dev-mode show login button, it's useless in web now

rcmerci 1 year ago
parent
commit
384c6115f5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/main/frontend/components/header.cljs

+ 3 - 3
src/main/frontend/components/header.cljs

@@ -315,7 +315,7 @@
                  (not custom-home-page?))
         (home-button))
 
-      (when sync-enabled?
+      (when (and (or (util/electron?) (state/developer-mode?)) sync-enabled?)
         (login))
 
       (when config/lsp-enabled?
@@ -345,8 +345,8 @@
          (t :graph)])
 
       (toolbar-dots-menu {:t            t
-                      :current-repo current-repo
-                      :default-home default-home})
+                          :current-repo current-repo
+                          :default-home default-home})
 
       (sidebar/toggle)