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() { createElement() {
if (!this.enabled) { if (!this.enabled) {
return null; return html`
<div></div>
`;
} }
const user = this.state.user; const user = this.state.user;
const translate = this.state.translate; const translate = this.state.translate;
if (!this.local.loggedIn) { if (!this.local.loggedIn) {
return html` return html`
<div> <div>
<button <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" 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)}" onclick="${e => this.login(e)}"
> >
${translate('signInMenuOption')} ${translate('signInMenuOption')}
</button> </button>
</div> </div>
`; `;
} }
return html` return html`