24
1
Fork 0

fixed account ui when not enabled

This commit is contained in:
Danny Coates 2018-11-16 10:01:53 -08:00
parent 660a1947cc
commit 9989f944c3
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
1 changed files with 11 additions and 9 deletions

View File

@ -52,20 +52,22 @@ class Account extends Component {
createElement() {
if (!this.enabled) {
return null;
return html`
<div></div>
`;
}
const user = this.state.user;
const translate = this.state.translate;
if (!this.local.loggedIn) {
return html`
<div>
<button
class="p-2 border rounded border-white text-white hover:bg-white hover:text-blue md:text-blue md:border-blue md:hover:text-white md:hover:bg-blue"
onclick="${e => this.login(e)}"
>
${translate('signInMenuOption')}
</button>
</div>
<div>
<button
class="p-2 border rounded border-white text-white hover:bg-white hover:text-blue md:text-blue md:border-blue md:hover:text-white md:hover:bg-blue"
onclick="${e => this.login(e)}"
>
${translate('signInMenuOption')}
</button>
</div>
`;
}
return html`