diff --git a/frontend/resources/locales.json b/frontend/resources/locales.json index 712a139a9..898a25a64 100644 --- a/frontend/resources/locales.json +++ b/frontend/resources/locales.json @@ -830,6 +830,12 @@ "es" : "Actualizado: %s" } }, + "errors.google-auth-not-enabled" : { + "translations" : { + "en" : "Authentication with google disabled on backend", + "es" : "Autenticación con google esta dehabilitada en el servidor" + } + }, "errors.auth.unauthorized" : { "used-in" : [ "src/app/main/ui/auth/login.cljs:89" ], "translations" : { diff --git a/frontend/src/app/main/ui/auth/login.cljs b/frontend/src/app/main/ui/auth/login.cljs index f85e5acde..bbdc805e7 100644 --- a/frontend/src/app/main/ui/auth/login.cljs +++ b/frontend/src/app/main/ui/auth/login.cljs @@ -37,7 +37,9 @@ (dom/prevent-default event) (->> (rp/mutation! :login-with-google {}) (rx/subs (fn [{:keys [redirect-uri] :as rsp}] - (.replace js/location redirect-uri))))) + (.replace js/location redirect-uri)) + (fn [{:keys [type] :as error}] + (st/emit! (dm/error (tr "errors.google-auth-not-enabled"))))))) (defn- login-with-gitlab [event]