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

🐛 Hide demo user link on login and register when is disabled.

This commit is contained in:
Andrey Antukh 2021-01-29 13:06:36 +01:00 committed by Alonso Torres
parent 341bb8495a
commit 1210924562
2 changed files with 14 additions and 11 deletions

View file

@ -152,9 +152,10 @@
{:src "/images/icons/brand-github.svg"}]
(tr "auth.login-with-github-submit")])
[:div.links.demo
[:div.link-entry
[:span (tr "auth.create-demo-profile") " "]
[:a {:on-click (st/emitf da/create-demo-profile)
:tab-index "6"}
(tr "auth.create-demo-account")]]]]])
(when cfg/allow-demo-users
[:div.links.demo
[:div.link-entry
[:span (tr "auth.create-demo-profile") " "]
[:a {:on-click (st/emitf da/create-demo-profile)
:tab-index "6"}
(tr "auth.create-demo-account")]]])]])

View file

@ -116,6 +116,7 @@
[:div.form-container
[:h1 (t locale "auth.register-title")]
[:div.subtitle (t locale "auth.register-subtitle")]
(when cfg/demo-warning
[:& demo-warning])
@ -129,8 +130,9 @@
:tab-index "4"}
(t locale "auth.login-here")]]
[:div.link-entry
[:span (t locale "auth.create-demo-profile") " "]
[:a {:on-click #(st/emit! da/create-demo-profile)
:tab-index "5"}
(t locale "auth.create-demo-account")]]]])
(when cfg/allow-demo-users
[:div.link-entry
[:span (t locale "auth.create-demo-profile") " "]
[:a {:on-click #(st/emit! da/create-demo-profile)
:tab-index "5"}
(t locale "auth.create-demo-account")]])]])