From 4201d55d658f224ffa01e7f7cf15e2fa0789f74d Mon Sep 17 00:00:00 2001 From: Natsumi Date: Wed, 19 Jan 2022 06:00:39 +1300 Subject: [PATCH] Bug fixes --- html/src/app.js | 8 ++++---- html/src/index.pug | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/html/src/app.js b/html/src/app.js index 1e9f228a..d3c4f367 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -7278,6 +7278,7 @@ speechSynthesis.getVoices(); }; API.$on('LOGIN', async function (args) { + $app.friendLog = new Map(); $app.feedTable.data = []; $app.feedSessionTable = []; $app.friendLogInitStatus = false; @@ -10320,7 +10321,6 @@ speechSynthesis.getVoices(); }; $app.methods.getFriendLog = async function () { - this.friendLog = new Map(); var friendLogCurrentArray = await database.getFriendLogCurrent(); for (var friend of friendLogCurrentArray) { this.friendLog.set(friend.userId, friend); @@ -16541,7 +16541,7 @@ speechSynthesis.getVoices(); $app.methods.displayPreviousImages = function (type, command) { this.previousImagesTableFileId = ''; - this.previousImagesTable = ''; + this.previousImagesTable = []; var imageUrl = ''; if (type === 'Avatar') { var {imageUrl} = this.avatarDialog.ref; @@ -16633,11 +16633,11 @@ speechSynthesis.getVoices(); $app.data.changeAvatarImageDialogLoading = false; $app.data.changeWorldImageDialogVisible = false; $app.data.changeWorldImageDialogLoading = false; - $app.data.previousImagesTable = {}; + $app.data.previousImagesTable = []; $app.data.previousImagesFileId = ''; API.$on('LOGIN', function () { - $app.previousImagesTable = {}; + $app.previousImagesTable = []; $app.previousImagesDialogVisible = false; }); diff --git a/html/src/index.pug b/html/src/index.pug index d433af6b..bbed924a 100644 --- a/html/src/index.pug +++ b/html/src/index.pug @@ -1397,7 +1397,7 @@ html el-dropdown-item(icon="el-icon-s-custom" command="Show Avatar Author" divided) Show Avatar Author el-dropdown-item(icon="el-icon-s-custom" command="Show Fallback Avatar Details") Show Fallback Avatar Details el-dropdown-item(icon="el-icon-tickets" command="Previous Instances") Show Previous Instances - el-dropdown-item(v-if="userDialog.ref.currentAvatarImageUrl !== robotUrl" icon="el-icon-picture-outline" command="Previous Images") Show Avatar Previous Images + el-dropdown-item(v-if="userDialog.ref.currentAvatarImageUrl" icon="el-icon-picture-outline" command="Previous Images") Show Avatar Previous Images el-dropdown-item(v-if="userDialog.isBlock" icon="el-icon-circle-check" command="Unblock" divided style="color:#F56C6C") Unblock el-dropdown-item(v-else icon="el-icon-circle-close" command="Block" divided :disabled="userDialog.ref.$isModerator") Block el-dropdown-item(v-if="userDialog.isMute" icon="el-icon-microphone" command="Unmute" style="color:#F56C6C") Unmute @@ -1541,8 +1541,8 @@ html el-radio(label="all") all el-radio(label="public") public el-radio(label="private") private - .x-friend-list(v-loading="userDialog.isAvatarsLoading" style="margin-top:10px;min-height:60px") - .x-friend-item(v-for="avatar in userDialogAvatars" :key="avatar.id" @click="showAvatarDialog(avatar.id)" class="x-friend-item-border") + .x-friend-list(style="margin-top:10px;min-height:60px") + .x-friend-item(v-for="avatar in userDialogAvatars" @click="showAvatarDialog(avatar.id)" class="x-friend-item-border") .avatar img(v-lazy="avatar.thumbnailImageUrl") .detail