Add currentAvatarAssetUrl, typos

This commit is contained in:
Natsumi
2021-07-13 01:54:07 +12:00
parent 0ed5969f76
commit 395777b271
2 changed files with 7 additions and 4 deletions

View File

@@ -9461,6 +9461,9 @@ speechSynthesis.getVoices();
API.getAvatar({avatarId}).then((args) => {
var { ref } = args;
D.ref = ref;
if ((ref.imageUrl === API.currentUser.currentAvatarImageUrl) && (!ref.assetUrl)) {
D.ref.assetUrl = API.currentUser.currentAvatarAssetUrl;
}
D.visible = true;
if (/quest/.test(ref.tags)) {
D.isQuestFallback = true;
@@ -9480,7 +9483,7 @@ speechSynthesis.getVoices();
var fileId = extractFileId(ref.assetUrl);
var fileVersion = extractFileVersion(ref.assetUrl);
}
var imageId = extractFileId(ref.thumbnailImageUrl);
var imageId = extractFileId(ref.imageUrl);
D.fileSize = '';
if (fileId) {
D.fileSize = 'Loading';
@@ -9620,7 +9623,7 @@ speechSynthesis.getVoices();
});
return;
}
if ((refUserId === API.currentUser.id) && (API.cachedAvatars.has(API.currentUser.currentAvatar))) {
if (refUserId === API.currentUser.id) {
this.showAvatarDialog(API.currentUser.currentAvatar);
return;
}

View File

@@ -694,7 +694,7 @@ html
span.name Use a Primary Password
el-switch(v-model="enablePrimaryPassword" @change="enablePrimaryPasswordChange" :disabled="!loginForm.savedCredentials[API.currentUser.username]")
div.options-container
span.header Side Pannel Sorting Options
span.header Side Panel Sorting Options
div.options-container-item
span.name Sort Private to bottom
el-switch(v-model="orderFriendsGroupPrivate")
@@ -810,7 +810,7 @@ html
div.options-container-item
el-button(size="small" icon="el-icon-chat-square" @click="showNotyFeedFiltersDialog()") Notification Filters
br
span.sub-header Text-To-Speach Options
span.sub-header Text-To-Speech Options
div.options-container-item
span.name Notification TTS, When to play:
br