Copy user URL

This commit is contained in:
Natsumi
2021-09-26 09:56:33 +12:00
parent 697f30e343
commit 700fd8b89b
2 changed files with 11 additions and 0 deletions

View File

@@ -10834,6 +10834,8 @@ speechSynthesis.getVoices();
this.displayPreviousImages('User', 'Display');
} else if (command === 'Manage Gallery') {
this.showGalleryDialog();
} else if (command === 'Copy User') {
this.copyUser(D.id);
} else {
this.$confirm(`Continue? ${command}`, 'Confirm', {
confirmButtonText: 'Confirm',
@@ -12217,6 +12219,14 @@ speechSynthesis.getVoices();
this.copyToClipboard(`https://vrchat.com/home/world/${worldId}`);
};
$app.methods.copyUser = function (userId) {
this.$message({
message: 'User URL copied to clipboard',
type: 'success'
});
this.copyToClipboard(`https://vrchat.com/home/user/${userId}`);
};
// App: VRCPlus Icons
API.$on('LOGIN', function () {