mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-24 09:13:50 +02:00
avatar dialog select avatar and share buttons
This commit is contained in:
26
src/app.js
26
src/app.js
@@ -12364,6 +12364,18 @@ console.log(`isLinux: ${LINUX}`);
|
||||
});
|
||||
};
|
||||
|
||||
$app.methods.selectAvatar = function (id) {
|
||||
API.selectAvatar({
|
||||
avatarId: id
|
||||
}).then((args) => {
|
||||
this.$message({
|
||||
message: 'Avatar changed',
|
||||
type: 'success'
|
||||
});
|
||||
return args;
|
||||
});
|
||||
};
|
||||
|
||||
$app.methods.selectAvatarWithConfirmation = function (id) {
|
||||
this.$confirm(`Continue? Select Avatar`, 'Confirm', {
|
||||
confirmButtonText: 'Confirm',
|
||||
@@ -12406,6 +12418,9 @@ console.log(`isLinux: ${LINUX}`);
|
||||
case 'Refresh':
|
||||
this.showAvatarDialog(D.id);
|
||||
break;
|
||||
case 'Share':
|
||||
this.copyAvatarUrl(D.id);
|
||||
break;
|
||||
case 'Rename':
|
||||
this.promptRenameAvatar(D);
|
||||
break;
|
||||
@@ -12446,17 +12461,6 @@ console.log(`isLinux: ${LINUX}`);
|
||||
objectId: D.id
|
||||
});
|
||||
break;
|
||||
case 'Select Avatar':
|
||||
API.selectAvatar({
|
||||
avatarId: D.id
|
||||
}).then((args) => {
|
||||
this.$message({
|
||||
message: 'Avatar changed',
|
||||
type: 'success'
|
||||
});
|
||||
return args;
|
||||
});
|
||||
break;
|
||||
case 'Select Fallback Avatar':
|
||||
API.selectFallbackAvatar({
|
||||
avatarId: D.id
|
||||
|
||||
Reference in New Issue
Block a user