generated from VLADIMIR/template_frontend
ups
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user