Support selecting a thread and showing related messages (by a rather brute force search). Sort child messages in the reverse order of top level messages, because that's how we roll.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3754 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-01-12 02:55:29 +00:00
parent d51eb64c8e
commit 35b7eb511a
4 changed files with 58 additions and 4 deletions

View File

@@ -46,10 +46,16 @@ Vue.component('tf-message', {
'*');
}
},
show_message: function() {
window.parent.postMessage({action: 'setHash', hash: this.message.id}, '*');
},
},
template: `<md-app class="md-elevation-8" style="margin: 1em" v-if="!content_json || ['pub', 'vote'].indexOf(content_json.type) == -1">
<md-app-toolbar>
<h3>
<md-button class="md-icon-button" @click="show_message">
<md-icon>percent</md-icon>
</md-button>
<tf-user :id="message.author"></tf-user>
</h3>
<div style="font-size: x-small">