generated from VLADIMIR/template_frontend
add update game window
This commit is contained in:
@@ -16,7 +16,7 @@ const client = getAuthClient()
|
||||
const route = useRoute()
|
||||
const scenarioId = route.params.id
|
||||
|
||||
const showSettingsScenarioModal = ref(false)
|
||||
const showSettingsModal = ref(false)
|
||||
const statusScenarioName = ref('')
|
||||
const deletedScenarioName = ref('')
|
||||
|
||||
@@ -66,7 +66,7 @@ async function publicScenario(id: number) {
|
||||
}
|
||||
await getScenario(Number(scenarioId))
|
||||
statusScenarioName.value = ''
|
||||
showSettingsScenarioModal.value = false
|
||||
showSettingsModal.value = false
|
||||
}
|
||||
|
||||
async function addGame(name: string, id: number) {
|
||||
@@ -100,7 +100,7 @@ async function draftScenario(id: number) {
|
||||
}
|
||||
await getScenario(Number(scenarioId))
|
||||
statusScenarioName.value = ''
|
||||
showSettingsScenarioModal.value = false
|
||||
showSettingsModal.value = false
|
||||
}
|
||||
|
||||
async function uploadFile(file: File | null, filename: string): Promise<string> {
|
||||
@@ -148,7 +148,7 @@ async function updateScenario() {
|
||||
return
|
||||
}
|
||||
await getScenario(Number(scenarioId))
|
||||
showSettingsScenarioModal.value = false
|
||||
showSettingsModal.value = false
|
||||
}
|
||||
|
||||
function uint8ToBase64(uint8Array: Uint8Array) {
|
||||
@@ -282,7 +282,7 @@ async function deletePlace(place: Place) {
|
||||
|
||||
<div class="settings-block">
|
||||
Точек: {{ scenario.story?.places?.length }}
|
||||
<n-button quaternary @click="showSettingsScenarioModal = true" class="settings-button">
|
||||
<n-button quaternary @click="showSettingsModal = true" class="settings-button">
|
||||
<Icon class="settings-icon">
|
||||
<Settings />
|
||||
</Icon>
|
||||
@@ -310,12 +310,12 @@ async function deletePlace(place: Place) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Окно настроек сценария -->
|
||||
<n-modal v-model:show="showSettingsScenarioModal">
|
||||
<!-- Окно настроек -->
|
||||
<n-modal v-model:show="showSettingsModal">
|
||||
<n-card style="width: 600px" title="Настройки сценария" :bordered="false" size="huge" role="dialog"
|
||||
aria-modal="true">
|
||||
<template #header-extra>
|
||||
<n-button @click="showSettingsScenarioModal = false"> x </n-button>
|
||||
<n-button @click="showSettingsModal = false"> x </n-button>
|
||||
</template>
|
||||
<n-space vertical>
|
||||
<p>Название</p>
|
||||
|
||||
Reference in New Issue
Block a user