UX: Hide login button during externally authenticated account creation

Also switch to use the new d-button loading property for the create account button
This commit is contained in:
David Taylor 2020-06-18 12:24:35 +01:00
parent 977766e7a8
commit 041d28295f
No known key found for this signature in database
GPG Key ID: 46904C18B1D3F434

View File

@ -146,13 +146,14 @@
action=(action "createAccount")
disabled=submitDisabled
label="create_account.title"
isLoading=formSubmitted
}}
{{#conditional-loading-spinner condition=formSubmitted size="small"}}
{{#d-button class="btn-large" id="login-link" action=(route-action "showLogin")}}
{{#unless hasAuthOptions}}
{{#d-button class="btn-large" id="login-link" action=(route-action "showLogin") disabled=formSubmitted}}
{{i18n "log_in"}}
{{/d-button}}
{{/conditional-loading-spinner}}
{{/unless}}
<div class="disclaimer">{{html-safe disclaimerHtml}}</div>
</div>