mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 18:48:37 -05:00
✨ Enable google auth button only when is enabled.
This commit is contained in:
parent
5983155680
commit
550ca7e4b2
2 changed files with 9 additions and 5 deletions
|
@ -12,11 +12,13 @@
|
|||
|
||||
(this-as global
|
||||
(let [config (obj/get global "uxboxConfig")
|
||||
puri (obj/get config "publicURI" "http://localhost:3449")
|
||||
buri (obj/get config "backendURI" "http://localhost:6060")
|
||||
puri (obj/get config "publicURI" "http://localhost:3449")
|
||||
buri (obj/get config "backendURI" "http://localhost:6060")
|
||||
gcid (obj/get config "googleClientID" true)
|
||||
warn (obj/get config "demoWarning" true)]
|
||||
(def default-language "en")
|
||||
(def demo-warning warn)
|
||||
(def backend-uri buri)
|
||||
(def google-client-id gcid)
|
||||
(def public-uri puri)
|
||||
(def default-theme "default")))
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
[cljs.spec.alpha :as s]
|
||||
[beicon.core :as rx]
|
||||
[rumext.alpha :as mf]
|
||||
[uxbox.config :as cfg]
|
||||
[uxbox.common.spec :as us]
|
||||
[uxbox.main.ui.icons :as i]
|
||||
[uxbox.main.data.auth :as da]
|
||||
|
@ -78,9 +79,10 @@
|
|||
|
||||
[:& login-form {:locale locale}]
|
||||
|
||||
[:a.btn-secondary.btn-large.btn-google-auth
|
||||
{:on-click login-with-google}
|
||||
"Login with google"]
|
||||
(when cfg/google-client-id
|
||||
[:a.btn-secondary.btn-large.btn-google-auth
|
||||
{:on-click login-with-google}
|
||||
"Login with google"])
|
||||
|
||||
[:div.links
|
||||
[:div.link-entry
|
||||
|
|
Loading…
Add table
Reference in a new issue