Hide the reactions button if there aren't any.

This commit is contained in:
Cory McWilliams 2024-04-26 18:19:13 -04:00
parent b5ed7014f6
commit 8c759bcbac
2 changed files with 16 additions and 14 deletions

View File

@ -1,5 +1,5 @@
{
"type": "tildefriends-app",
"emoji": "🐌",
"previous": "&UDqtNEELPRZAP6jSrcKfoXpAr8s7GjWmWLOQINN4kmg=.sha256"
"previous": "&n79T1PqC7BjDlQsKdVx2ghkjJVfYfq8uWrK0aoeL+qM=.sha256"
}

View File

@ -72,6 +72,7 @@ class TfMessageElement extends LitElement {
return expression;
}
}
if (this.message?.votes?.length) {
return html`<div class="w3-button" @click=${this.show_reactions}>
${(this.message.votes || []).map(
(vote) => html`
@ -86,6 +87,7 @@ class TfMessageElement extends LitElement {
)}
</div>`;
}
}
render_raw() {
let raw = {