forked from cory/tildefriends
Allow clicking on existing votes.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3826 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@@ -142,8 +142,8 @@ Vue.component('tf-message', {
|
||||
{{message.id}}
|
||||
</template>
|
||||
<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 v-for="vote in Object.keys(votes[message.id] || {})" v-bind:key="vote">
|
||||
{{vote + (votes[message.id][vote].length > 1 ? ' (' + votes[message.id][vote].length + ')' : '')}}
|
||||
<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-chip>
|
||||
<md-card-actions v-if="message.author">
|
||||
<md-button class="md-icon-button" @click="set_reply">
|
||||
|
Reference in New Issue
Block a user