Browse Source

chore: temp fn to enable login button

rcmerci 1 year ago
parent
commit
f09422f4a0
2 changed files with 13 additions and 2 deletions
  1. 6 2
      src/main/frontend/components/header.cljs
  2. 7 0
      src/main/frontend/handler/user.cljs

+ 6 - 2
src/main/frontend/components/header.cljs

@@ -150,8 +150,12 @@
                      :icon (ui/icon "bulb")})
 
                   ;; Disable login on Web until RTC is ready
-                  (when (and (not login?) (or (not util/web-platform?)
-                                              config/dev?))
+                  (when (and (not login?)
+                             @user-handler/*show-login-button?
+                             ;; (or (not util/web-platform?)
+                             ;;     config/dev?
+                             ;;     @user-handler/*show-login-button?)
+                             )
                     {:title (t :login)
                      :options {:on-click #(state/pub-event! [:user/login])}
                      :icon (ui/icon "user")})

+ 7 - 0
src/main/frontend/handler/user.cljs

@@ -321,3 +321,10 @@
             :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)))