forked from cory/tildefriends
Module-ified the ssb app and started to integrate tfrpc.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3911 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
"use strict";
|
||||
import * as tf from './tf.js';
|
||||
|
||||
Vue.component('tf-user', {
|
||||
props: ['id'],
|
||||
computed: {
|
||||
following: {
|
||||
get: function() {
|
||||
return g_data.users &&
|
||||
g_data.users[g_data.whoami] &&
|
||||
g_data.users[g_data.whoami].following &&
|
||||
g_data.users[g_data.whoami].following[this.id];
|
||||
return tf.g_data.users?.[tf.g_data.whoami]?.following?.[this.id];
|
||||
},
|
||||
},
|
||||
whoami: { get: function() { return g_data.whoami; } },
|
||||
users: { get: function() { return g_data.users; } },
|
||||
whoami: { get: function() { return tf.g_data.whoami; } },
|
||||
users: { get: function() { return tf.g_data.users; } },
|
||||
},
|
||||
methods: {
|
||||
show_user: function() {
|
||||
|
Reference in New Issue
Block a user