mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
feat: refresh button on avatar dialog
This commit is contained in:
@@ -13506,6 +13506,7 @@ speechSynthesis.getVoices();
|
|||||||
this.$nextTick(() => adjustDialogZ(this.$refs.avatarDialog.$el));
|
this.$nextTick(() => adjustDialogZ(this.$refs.avatarDialog.$el));
|
||||||
var D = this.avatarDialog;
|
var D = this.avatarDialog;
|
||||||
D.visible = true;
|
D.visible = true;
|
||||||
|
D.loading = true;
|
||||||
D.id = avatarId;
|
D.id = avatarId;
|
||||||
D.treeData = [];
|
D.treeData = [];
|
||||||
D.fileSize = '';
|
D.fileSize = '';
|
||||||
@@ -13569,6 +13570,8 @@ speechSynthesis.getVoices();
|
|||||||
D.fileSize = 'Error';
|
D.fileSize = 'Error';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
D.loading = false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -13578,6 +13581,9 @@ speechSynthesis.getVoices();
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
switch (command) {
|
switch (command) {
|
||||||
|
case 'Refresh':
|
||||||
|
this.showAvatarDialog(D.id);
|
||||||
|
break;
|
||||||
case 'Rename':
|
case 'Rename':
|
||||||
this.promptRenameAvatar(D);
|
this.promptRenameAvatar(D);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -1689,6 +1689,7 @@ html
|
|||||||
el-dropdown(trigger="click" @command="avatarDialogCommand" size="small" style="margin-left:5px")
|
el-dropdown(trigger="click" @command="avatarDialogCommand" size="small" style="margin-left:5px")
|
||||||
el-button(type="default" icon="el-icon-more" circle)
|
el-button(type="default" icon="el-icon-more" circle)
|
||||||
el-dropdown-menu(#default="dropdown")
|
el-dropdown-menu(#default="dropdown")
|
||||||
|
el-dropdown-item(icon="el-icon-refresh" command="Refresh") Refresh
|
||||||
el-dropdown-item(icon="el-icon-check" command="Select Avatar") Select Avatar
|
el-dropdown-item(icon="el-icon-check" command="Select Avatar") Select Avatar
|
||||||
el-dropdown-item(v-if="/quest/.test(avatarDialog.ref.tags)" icon="el-icon-check" command="Select Fallback Avatar") Select Fallback Avatar
|
el-dropdown-item(v-if="/quest/.test(avatarDialog.ref.tags)" icon="el-icon-check" command="Select Fallback Avatar") Select Fallback Avatar
|
||||||
el-dropdown-item(v-if="avatarDialog.ref.authorId !== API.currentUser.id" icon="el-icon-picture-outline" command="Previous Images") Previous Images
|
el-dropdown-item(v-if="avatarDialog.ref.authorId !== API.currentUser.id" icon="el-icon-picture-outline" command="Previous Images") Previous Images
|
||||||
|
|||||||
Reference in New Issue
Block a user