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 () {

View File

@@ -1091,6 +1091,7 @@ html
el-button(:type="(userDialog.incomingRequest || userDialog.outgoingRequest) ? 'success' : (userDialog.isBlock || userDialog.isMute || userDialog.isHideAvatar) ? 'danger' : 'default'" icon="el-icon-more" circle style="margin-left:5px")
el-dropdown-menu(#default="dropdown")
el-dropdown-item(icon="el-icon-refresh" command="Refresh") Refresh
el-dropdown-item(icon="el-icon-s-order" command="Copy User") Copy User URL
template(v-if="userDialog.ref.id === API.currentUser.id")
el-dropdown-item(icon="el-icon-picture-outline" command="Manage Gallery" divided) Manage Gallery/Icons
el-dropdown-item(icon="el-icon-s-custom" command="Show Avatar Author") Show Avatar Author