Minor colleted changes.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3837 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-02-13 21:49:53 +00:00
parent 1bdd67d659
commit 5ffc505ce2
6 changed files with 8 additions and 6 deletions

View File

@@ -86,7 +86,6 @@ Vue.component('tf-message', {
div.appendChild(img);
div.onclick = function() { document.body.removeChild(div); };
document.body.appendChild(div);
console.log(document.body.children);
},
},
template: `<md-app class="md-elevation-8" style="margin: 1em" v-if="!content_json || ['pub', 'vote'].indexOf(content_json.type) == -1">
@@ -144,6 +143,9 @@ Vue.component('tf-message', {
<tf-message v-for="sub_message in (message.children || [])" v-bind:message="sub_message" v-bind:messages="messages" v-bind:votes="votes" v-bind:key="sub_message.id"></tf-message>
<md-chip md-clickable v-for="v in Object.keys(votes[message.id] || {})" v-bind:key="v" @click="vote">
{{v + (votes[message.id][v].length > 1 ? ' (' + votes[message.id][v].length + ')' : '')}}
<md-tooltip style="height: auto">
<div v-for="vote in votes[message.id][v]" v-bind:key="vote.author">{{vote.author}}</div>
</md-tooltip>
</md-chip>
<md-card-actions v-if="message.author">
<md-button class="md-icon-button" @click="set_reply">