Toggle self invite/open in-game

This commit is contained in:
Natsumi
2025-09-04 05:39:24 +12:00
parent 307bbbbd05
commit 96f3b239f6
9 changed files with 112 additions and 34 deletions

View File

@@ -66,7 +66,7 @@
@click="showInviteDialog(launchDialog.location)">
{{ t('dialog.launch.invite') }}
</el-button>
<template v-if="isGameRunning">
<template v-if="canOpenInstanceInGame()">
<el-button
type="default"
size="small"
@@ -106,7 +106,7 @@
import {
useAppearanceSettingsStore,
useFriendStore,
useGameStore,
useInviteStore,
useInstanceStore,
useLaunchStore,
useLocationStore
@@ -122,7 +122,7 @@
const { launchGame, tryOpenInstanceInVrc } = useLaunchStore();
const { launchDialogData } = storeToRefs(useLaunchStore());
const { showPreviousInstancesInfoDialog } = useInstanceStore();
const { isGameRunning } = storeToRefs(useGameStore());
const { canOpenInstanceInGame } = useInviteStore();
const launchDialogRef = ref(null);