This commit is contained in:
2026-09-18 16:43:29 +07:00
parent 0107274a08
commit d71add5998
9 changed files with 291 additions and 1 deletions
+11 -1
View File
@@ -48,7 +48,7 @@ const gameId = route.params.id
const message = useMessage()
const showSettingsModal = ref(false)
const settingsDraft = ref({ name: '', description: '', format: 'online' })
const settingsDraft = ref({ name: '', description: '', format: 'online', location: '' })
const showGiveApplicationModal = ref(false)
const showAddTeamModal = ref(false)
const showDeleteTeamModal = ref(false)
@@ -67,6 +67,7 @@ const game = ref<Game>({
startAt: undefined,
status: undefined,
format: undefined,
location: undefined,
scenario: undefined,
teams: undefined,
})
@@ -321,6 +322,7 @@ function openSettings() {
name: game.value.name || '',
description: game.value.description || '',
format: game.value.format || 'online',
location: game.value.location || '',
}
showSettingsModal.value = true
}
@@ -335,6 +337,7 @@ async function updateGame() {
name: settingsDraft.value.name,
description: settingsDraft.value.description,
format: settingsDraft.value.format,
location: settingsDraft.value.location.trim(),
startAt: game.value.startAt,
scenarioId: game.value.scenario?.id,
})
@@ -981,6 +984,13 @@ useSimplePolling(() => {
type="textarea"
placeholder="Убийство пастуха..."
/>
<p class="settings-header">Место проведения</p>
<n-input
v-model:value="settingsDraft.location"
type="text"
placeholder="Оставьте пустым для онлайн-игры"
/>
</n-space>
<template #footer>
<n-flex justify="end">