+
+
+ {{ game.name }}
+
+
+
+
+ Настройки
+
+
+
{{ team.name }}
@@ -49,6 +83,27 @@ async function toTeamStory(id: number, password: string) {
+
+
+
+
+ x
+
+
+ Название
+
+
+
+
+
+ Сохранить изменения
+
+
+
+
+
+
@@ -69,4 +124,16 @@ async function toTeamStory(id: number, password: string) {
font-size: 24px;
margin-bottom: 10px;
}
+
+.settings-block {
+ height: 40px;
+}
+
+.settings-button {
+ float: right;
+}
+
+.settings-icon {
+ width: 20px;
+}
diff --git a/src/components/ScenariosEditorPage.vue b/src/components/ScenariosEditorPage.vue
index 93c50dd..5460af5 100644
--- a/src/components/ScenariosEditorPage.vue
+++ b/src/components/ScenariosEditorPage.vue
@@ -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
{
@@ -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) {
Точек: {{ scenario.story?.places?.length }}
-
+
@@ -310,12 +310,12 @@ async function deletePlace(place: Place) {