mirror of
https://github.com/penpot/penpot.git
synced 2025-02-08 08:09:14 -05:00
🐛 Hide demo user link on login and register when is disabled.
This commit is contained in:
parent
341bb8495a
commit
1210924562
2 changed files with 14 additions and 11 deletions
|
@ -152,9 +152,10 @@
|
||||||
{:src "/images/icons/brand-github.svg"}]
|
{:src "/images/icons/brand-github.svg"}]
|
||||||
(tr "auth.login-with-github-submit")])
|
(tr "auth.login-with-github-submit")])
|
||||||
|
|
||||||
[:div.links.demo
|
(when cfg/allow-demo-users
|
||||||
[:div.link-entry
|
[:div.links.demo
|
||||||
[:span (tr "auth.create-demo-profile") " "]
|
[:div.link-entry
|
||||||
[:a {:on-click (st/emitf da/create-demo-profile)
|
[:span (tr "auth.create-demo-profile") " "]
|
||||||
:tab-index "6"}
|
[:a {:on-click (st/emitf da/create-demo-profile)
|
||||||
(tr "auth.create-demo-account")]]]]])
|
:tab-index "6"}
|
||||||
|
(tr "auth.create-demo-account")]]])]])
|
||||||
|
|
|
@ -116,6 +116,7 @@
|
||||||
[:div.form-container
|
[:div.form-container
|
||||||
[:h1 (t locale "auth.register-title")]
|
[:h1 (t locale "auth.register-title")]
|
||||||
[:div.subtitle (t locale "auth.register-subtitle")]
|
[:div.subtitle (t locale "auth.register-subtitle")]
|
||||||
|
|
||||||
(when cfg/demo-warning
|
(when cfg/demo-warning
|
||||||
[:& demo-warning])
|
[:& demo-warning])
|
||||||
|
|
||||||
|
@ -129,8 +130,9 @@
|
||||||
:tab-index "4"}
|
:tab-index "4"}
|
||||||
(t locale "auth.login-here")]]
|
(t locale "auth.login-here")]]
|
||||||
|
|
||||||
[:div.link-entry
|
(when cfg/allow-demo-users
|
||||||
[:span (t locale "auth.create-demo-profile") " "]
|
[:div.link-entry
|
||||||
[:a {:on-click #(st/emit! da/create-demo-profile)
|
[:span (t locale "auth.create-demo-profile") " "]
|
||||||
:tab-index "5"}
|
[:a {:on-click #(st/emit! da/create-demo-profile)
|
||||||
(t locale "auth.create-demo-account")]]]])
|
:tab-index "5"}
|
||||||
|
(t locale "auth.create-demo-account")]])]])
|
||||||
|
|
Loading…
Add table
Reference in a new issue