0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-14 11:09:04 -05:00

Enable google auth button only when is enabled.

This commit is contained in:
Andrey Antukh 2020-05-26 12:53:22 +02:00
parent 5983155680
commit 550ca7e4b2
2 changed files with 9 additions and 5 deletions

View file

@ -14,9 +14,11 @@
(let [config (obj/get global "uxboxConfig")
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")))

View file

@ -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}]
(when cfg/google-client-id
[:a.btn-secondary.btn-large.btn-google-auth
{:on-click login-with-google}
"Login with google"]
"Login with google"])
[:div.links
[:div.link-entry