Sign in button to connect account

This commit is contained in:
2019-09-04 18:13:50 +02:00
parent 729110f8d1
commit cae13ed662
5 changed files with 49 additions and 19 deletions
@@ -1,11 +1,18 @@
<section id="user-account">
{{#if (and kredits.hasAccounts kredits.currentUser)}}
{{kredits.currentUser.name}}
{{#if kredits.currentUserIsCore}}
<span class="core-flag">(core)</span>
{{/if}}
{{#if setupInProgress}}
Connecting account...
{{else}}
Anonymous
<button {{action "signup"}} class="small green">Sign up</button>
{{#if (and kredits.hasAccounts kredits.currentUser)}}
{{kredits.currentUser.name}}
{{#if kredits.currentUserIsCore}}
<span class="core-flag">(core)</span>
{{/if}}
{{else}}
Anonymous
<button {{action "signup"}} class="small">Sign up</button>
{{#if showConnectButton}}
<button {{action "connectAccount"}} class="small green">Connect account</button>
{{/if}}
{{/if}}
{{/if}}
</section>