Progress toward viewing user profile pages.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3737 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-01-07 01:52:47 +00:00
parent 49ffd1055e
commit ae84f69025
6 changed files with 82 additions and 47 deletions

View File

@@ -12,6 +12,7 @@ Vue.component('tf-user', {
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];
},
set: function(newValue) {
@@ -45,7 +46,7 @@ Vue.component('tf-user', {
window.parent.postMessage(message, '*');
},
show_user: function() {
this.show_user_dialog = true;
window.parent.postMessage({action: 'setHash', hash: this.id}, '*');
if (this.id == this.whoami) {
this.edit_profile_name = this.users[this.id].name;
this.edit_profile_description = this.users[this.id].description;