Fix some obvious things now that the RPC is slightly better.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3957 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-08-13 19:39:29 +00:00
parent d70dba021a
commit fc9c3982c2
10 changed files with 43 additions and 28 deletions

View File

@@ -15,12 +15,12 @@ Vue.component('tf-user', {
show_user: function() {
window.parent.postMessage({
action: 'setHash',
hash: tf.g_data.whoami + ':' + this.id,
hash: this.id,
}, '*');
},
},
template: `<md-chip :class="following ? 'md-accent' : ''">
<a :href="'#' + whoami + ':' + id" style="color: #fff">{{users[id] && users[id].name ? users[id].name : id}}</a>
<a :href="'#' + id" style="color: #fff">{{users[id] && users[id].name ? users[id].name : id}}</a>
<md-tooltip v-if="users[id] && users[id].name">{{id}}</md-tooltip>
</md-chip>`,
});