diff --git a/apps/ssb/tf-app.js b/apps/ssb/tf-app.js index 5eae2681..7108bcef 100644 --- a/apps/ssb/tf-app.js +++ b/apps/ssb/tf-app.js @@ -121,7 +121,7 @@ class TfElement extends LitElement { } next_channel(delta) { - let channel_names = ['', '@', 'πŸ”', ...this.channels.map(x => '#' + x)]; + let channel_names = ['', '@', 'πŸ”', ...this.channels.map((x) => '#' + x)]; let index = channel_names.indexOf(this.hash.substring(1)); index = index != -1 ? index + delta : 0; tfrpc.rpc.setHash( @@ -217,7 +217,7 @@ class TfElement extends LitElement { let new_cache = JSON.stringify(cache); if (new_cache !== original_cache) { let start_time = new Date(); - tfrpc.rpc.databaseSet('about', new_cache).then(function() { + tfrpc.rpc.databaseSet('about', new_cache).then(function () { console.log('saving about took', (new Date() - start_time) / 1000); }); } @@ -543,13 +543,15 @@ class TfElement extends LitElement { )} `; - let contents = !this.loaded || this.loading - ? html`
- πŸ¦€ Loading... + πŸ¦€ + Loading...
` - : this.render_tab(); + : this.render_tab(); return html`
[ - row.id, - row.author, - ])); + [JSON.stringify([this.root, this.branch])] + ) + ).map((row) => [row.id, row.author]) + ); if (Object.keys(reply).length) { message.reply = reply; } @@ -485,9 +487,13 @@ class TfComposeElement extends LitElement { render_new_thread() { let self = this; - if (this.root !== undefined && this.branch !== undefined && this.root != this.branch) { + if ( + this.root !== undefined && + this.branch !== undefined && + this.root != this.branch + ) { return html` - self.new_thread = !self.new_thread} ?checked=${self.new_thread}> + (self.new_thread = !self.new_thread)} ?checked=${self.new_thread}> `; } @@ -586,8 +592,7 @@ class TfComposeElement extends LitElement { ${Object.values(draft.mentions || {}).map((x) => self.render_mention(x) )} - ${this.render_attach_app()} - ${this.render_content_warning()} + ${this.render_attach_app()} ${this.render_content_warning()} ${this.render_new_thread()}