From c8b8a8fc03996a3b08a9cf6bb2ffdff7006c8b06 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sat, 13 Apr 2024 10:28:35 -0400 Subject: [PATCH] Oops, the tf-auth lit was all wrong. --- core/auth.html | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/core/auth.html b/core/auth.html index 60d33665..c21aa6be 100644 --- a/core/auth.html +++ b/core/auth.html @@ -19,8 +19,11 @@ Object.assign(app, g_data); class TfAuthElement extends LitElement { - static get_properties() { + static get properties() { return { + code_of_conduct: {type: String}, + error: {type: String}, + have_administrator: {type: Boolean}, name: {type: String}, tab: {type: String}, }; @@ -31,11 +34,6 @@ this.tab = 'login'; } - tab_changed(name) { - this.tab = name; - this.requestUpdate(); - } - render() { let self = this; return html` @@ -83,16 +81,16 @@

Welcome, ${this.name}.

- self.tab_changed('login')}> + self.tab = 'login'}> - self.tab_changed('register')}> + self.tab = 'register'}> - self.tab_changed('guest')}> + self.tab = 'guest'}> - self.tab_changed('change')}> + self.tab = 'change'}>