Explorar o código

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

rcmerci hai 1 ano
pai
achega
384c6115f5
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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)