mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Copy user URL
This commit is contained in:
@@ -10834,6 +10834,8 @@ speechSynthesis.getVoices();
|
|||||||
this.displayPreviousImages('User', 'Display');
|
this.displayPreviousImages('User', 'Display');
|
||||||
} else if (command === 'Manage Gallery') {
|
} else if (command === 'Manage Gallery') {
|
||||||
this.showGalleryDialog();
|
this.showGalleryDialog();
|
||||||
|
} else if (command === 'Copy User') {
|
||||||
|
this.copyUser(D.id);
|
||||||
} else {
|
} else {
|
||||||
this.$confirm(`Continue? ${command}`, 'Confirm', {
|
this.$confirm(`Continue? ${command}`, 'Confirm', {
|
||||||
confirmButtonText: 'Confirm',
|
confirmButtonText: 'Confirm',
|
||||||
@@ -12217,6 +12219,14 @@ speechSynthesis.getVoices();
|
|||||||
this.copyToClipboard(`https://vrchat.com/home/world/${worldId}`);
|
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
|
// App: VRCPlus Icons
|
||||||
|
|
||||||
API.$on('LOGIN', function () {
|
API.$on('LOGIN', function () {
|
||||||
|
|||||||
@@ -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-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-menu(#default="dropdown")
|
||||||
el-dropdown-item(icon="el-icon-refresh" command="Refresh") Refresh
|
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")
|
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-picture-outline" command="Manage Gallery" divided) Manage Gallery/Icons
|
||||||
el-dropdown-item(icon="el-icon-s-custom" command="Show Avatar Author") Show Avatar Author
|
el-dropdown-item(icon="el-icon-s-custom" command="Show Avatar Author") Show Avatar Author
|
||||||
|
|||||||
Reference in New Issue
Block a user