Skip to content

Commit

Permalink
chore: temp way to enable login button
Browse files Browse the repository at this point in the history
  • Loading branch information
RCmerci committed Dec 2, 2024
1 parent f09422f commit 3567059
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
23 changes: 12 additions & 11 deletions src/main/frontend/components/header.cljs
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
(ns frontend.components.header
(:require [cljs-bean.core :as bean]
[clojure.string :as string]
[frontend.components.export :as export]
[frontend.components.file-sync :as fs-sync]
[frontend.components.page-menu :as page-menu]
[frontend.components.plugins :as plugins]
[frontend.components.server :as server]
[frontend.components.right-sidebar :as sidebar]
[frontend.components.rtc.indicator :as rtc-indicator]
[frontend.components.server :as server]
[frontend.components.settings :as settings]
[frontend.components.svg :as svg]
[frontend.config :as config]
[frontend.context.i18n :refer [t]]
[frontend.db :as db]
[frontend.handler :as handler]
[frontend.components.file-sync :as fs-sync]
[frontend.components.rtc.indicator :as rtc-indicator]
[frontend.handler.page :as page-handler]
[frontend.handler.plugin :as plugin-handler]
[frontend.handler.route :as route-handler]
[frontend.handler.user :as user-handler]
[frontend.handler.page :as page-handler]
[frontend.mobile.util :as mobile-util]
[frontend.state :as state]
[frontend.storage :as storage]
[frontend.ui :as ui]
[logseq.shui.ui :as shui]
[logseq.shui.util :as shui-util]
[frontend.util :as util]
[frontend.version :refer [version]]
[logseq.db :as ldb]
[logseq.shui.ui :as shui]
[logseq.shui.util :as shui-util]
[reitit.frontend.easy :as rfe]
[rum.core :as rum]
[clojure.string :as string]
[frontend.db :as db]
[logseq.db :as ldb]))
[rum.core :as rum]))

(rum/defc home-button
< {:key-fn #(identity "home-button")}
Expand Down Expand Up @@ -151,7 +152,7 @@

;; Disable login on Web until RTC is ready
(when (and (not login?)
@user-handler/*show-login-button?
(storage/get :login-enabled)
;; (or (not util/web-platform?)
;; config/dev?
;; @user-handler/*show-login-button?)
Expand Down
7 changes: 0 additions & 7 deletions src/main/frontend/handler/user.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,3 @@
:beta (alpha-or-beta-user?)
:alpha (alpha-user?)
false)))))

(def *show-login-button? (atom false))
(defn ^:export show-login
"temp fn to enable login button"
([] (show-login true))
([x]
(reset! *show-login-button? x)))

0 comments on commit 3567059

Please sign in to comment.