mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 22:33:50 +02:00
fix
This commit is contained in:
@@ -607,6 +607,7 @@
|
||||
|
||||
const {
|
||||
newInstanceDialog,
|
||||
isLocalUserVrcPlusSupporter,
|
||||
buildInstance,
|
||||
buildLegacyInstance,
|
||||
updateNewInstanceDialog,
|
||||
|
||||
@@ -327,6 +327,7 @@ export function useNewInstanceBuilder(locationTagRef) {
|
||||
|
||||
return {
|
||||
newInstanceDialog,
|
||||
isLocalUserVrcPlusSupporter,
|
||||
buildInstance,
|
||||
buildLegacyInstance,
|
||||
updateNewInstanceDialog,
|
||||
|
||||
@@ -656,7 +656,7 @@
|
||||
homeLocation: ''
|
||||
})
|
||||
.then((args) => {
|
||||
toast.success('Home world has been reset');
|
||||
toast.success(t('message.user.home_reset'));
|
||||
return args;
|
||||
});
|
||||
})
|
||||
@@ -668,7 +668,7 @@
|
||||
* @param userId
|
||||
*/
|
||||
function copyUserId(userId) {
|
||||
copyToClipboard(userId, 'User ID copied to clipboard');
|
||||
copyToClipboard(userId, t('message.user.id_copied'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -676,7 +676,7 @@
|
||||
* @param userId
|
||||
*/
|
||||
function copyUserURL(userId) {
|
||||
copyToClipboard(`https://vrchat.com/home/user/${userId}`, 'User URL copied to clipboard');
|
||||
copyToClipboard(`https://vrchat.com/home/user/${userId}`, t('message.user.url_copied'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -684,7 +684,7 @@
|
||||
* @param displayName
|
||||
*/
|
||||
function copyUserDisplayName(displayName) {
|
||||
copyToClipboard(displayName, 'User DisplayName copied to clipboard');
|
||||
copyToClipboard(displayName, t('message.user.display_name_copied'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -161,7 +161,7 @@ describe('useUserDialogCommands', () => {
|
||||
userDialogCommand('Share');
|
||||
expect(copyToClipboard).toHaveBeenCalledWith(
|
||||
'https://vrchat.com/home/user/usr_test123',
|
||||
'User URL copied to clipboard'
|
||||
'message.user.url_copied'
|
||||
);
|
||||
});
|
||||
|
||||
@@ -207,7 +207,7 @@ describe('useUserDialogCommands', () => {
|
||||
);
|
||||
userDialogCommand('Show Fallback Avatar Details');
|
||||
expect(deps.toast.error).toHaveBeenCalledWith(
|
||||
'No fallback avatar set'
|
||||
'message.user.no_fallback_avatar'
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -235,7 +235,7 @@ export function useUserDialogCommands(
|
||||
Share: () => {
|
||||
copyToClipboard(
|
||||
`https://vrchat.com/home/user/${D().id}`,
|
||||
'User URL copied to clipboard'
|
||||
t('message.user.url_copied')
|
||||
);
|
||||
},
|
||||
'Add Favorite': () => {
|
||||
@@ -254,7 +254,7 @@ export function useUserDialogCommands(
|
||||
D().id
|
||||
)
|
||||
.then((args) => {
|
||||
toast('Request invite sent');
|
||||
toast(t('message.user.request_invite_sent'));
|
||||
recordRecentAction(D().id, 'Request Invite');
|
||||
return args;
|
||||
});
|
||||
@@ -326,7 +326,7 @@ export function useUserDialogCommands(
|
||||
if (fallbackAvatar) {
|
||||
showAvatarDialog(fallbackAvatar);
|
||||
} else {
|
||||
toast.error('No fallback avatar set');
|
||||
toast.error(t('message.user.no_fallback_avatar'));
|
||||
}
|
||||
},
|
||||
'Previous Instances': () => {
|
||||
|
||||
Reference in New Issue
Block a user