mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-25 17:53:48 +02:00
Revert "Add self invite to launch dialog"
This reverts commit 4801cfad58.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<safe-dialog ref="launchDialogRef" :visible.sync="isVisible" :title="t('dialog.launch.header')" width="500px">
|
<safe-dialog ref="launchDialogRef" :visible.sync="isVisible" :title="t('dialog.launch.header')" width="450px">
|
||||||
<el-form :model="launchDialog" label-width="100px">
|
<el-form :model="launchDialog" label-width="100px">
|
||||||
<el-form-item :label="t('dialog.launch.url')">
|
<el-form-item :label="t('dialog.launch.url')">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -67,13 +67,6 @@
|
|||||||
{{ t('dialog.launch.invite') }}
|
{{ t('dialog.launch.invite') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<template v-if="isGameRunning">
|
<template v-if="isGameRunning">
|
||||||
<el-button
|
|
||||||
type="default"
|
|
||||||
size="small"
|
|
||||||
:disabled="!launchDialog.secureOrShortName"
|
|
||||||
@click="handleSelfInvite(launchDialog.location, launchDialog.shortName)">
|
|
||||||
{{ t('dialog.launch.self_invite') }}
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
<el-button
|
||||||
type="default"
|
type="default"
|
||||||
size="small"
|
size="small"
|
||||||
@@ -204,20 +197,6 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
function handleLaunchGame(location, shortName, desktop) {
|
function handleLaunchGame(location, shortName, desktop) {
|
||||||
if (isGameRunning.value) {
|
|
||||||
proxy.$confirm(t('dialog.launch.game_running_warning'), t('dialog.launch.header'), {
|
|
||||||
confirmButtonText: t('dialog.launch.confirm_yes'),
|
|
||||||
cancelButtonText: t('dialog.launch.confirm_no'),
|
|
||||||
type: 'warning',
|
|
||||||
callback: (action) => {
|
|
||||||
if (action === 'confirm') {
|
|
||||||
launchGame(location, shortName, desktop);
|
|
||||||
isVisible.value = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
launchGame(location, shortName, desktop);
|
launchGame(location, shortName, desktop);
|
||||||
isVisible.value = false;
|
isVisible.value = false;
|
||||||
}
|
}
|
||||||
@@ -225,18 +204,6 @@
|
|||||||
tryOpenInstanceInVrc(location, shortName);
|
tryOpenInstanceInVrc(location, shortName);
|
||||||
isVisible.value = false;
|
isVisible.value = false;
|
||||||
}
|
}
|
||||||
async function handleSelfInvite(location, shortName) {
|
|
||||||
const L = parseLocation(location);
|
|
||||||
await instanceRequest.selfInvite({
|
|
||||||
instanceId: L.instanceId,
|
|
||||||
worldId: L.worldId,
|
|
||||||
shortName
|
|
||||||
});
|
|
||||||
proxy.$message({
|
|
||||||
message: 'Self invite sent',
|
|
||||||
type: 'success'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function getConfig() {
|
function getConfig() {
|
||||||
configRepository.getBool('launchAsDesktop').then((value) => (launchDialog.value.desktop = value));
|
configRepository.getBool('launchAsDesktop').then((value) => (launchDialog.value.desktop = value));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1324,11 +1324,7 @@
|
|||||||
"info": "Info",
|
"info": "Info",
|
||||||
"invite": "Invite",
|
"invite": "Invite",
|
||||||
"launch": "Launch",
|
"launch": "Launch",
|
||||||
"open_ingame": "Open in Game",
|
"open_ingame": "Open in Game"
|
||||||
"self_invite": "Self Invite",
|
|
||||||
"game_running_warning": "Are you sure you want to launch a second VRChat instance?",
|
|
||||||
"confirm_yes": "Yes",
|
|
||||||
"confirm_no": "No"
|
|
||||||
},
|
},
|
||||||
"export_friends_list": {
|
"export_friends_list": {
|
||||||
"header": "Export Friends List",
|
"header": "Export Friends List",
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ export const useInviteStore = defineStore('Invite', () => {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {string} messageType
|
* @param {string} messageType
|
||||||
* @param {any} inviteMessage
|
* @param {string} inviteMessage
|
||||||
*/
|
*/
|
||||||
function showEditInviteMessageDialog(messageType, inviteMessage) {
|
function showEditInviteMessageDialog(messageType, inviteMessage) {
|
||||||
const D = state.editInviteMessageDialog;
|
const D = state.editInviteMessageDialog;
|
||||||
|
|||||||
Reference in New Issue
Block a user