This commit is contained in:
2026-07-23 01:49:04 +07:00
parent 671105c3fb
commit e9e0d4e739
4 changed files with 12 additions and 5 deletions
+8 -1
View File
@@ -126,6 +126,13 @@ async function addPlace() {
mode.value = 'add'
}
async function cancelAddPlace() {
code.value = ''
name.value = ''
text.value = ''
mode.value = 'mini-add'
}
async function addNotFoundDoors(scenario: Scenario, place: Place) {
for (const door of place.doors || []) {
let place = scenario.story?.places?.find((place) => {
@@ -208,7 +215,7 @@ async function deletePlace(place: Place) {
<PlaceBlock v-model:mode="mode" v-model:newPlaceCode="code" v-model:newPlaceName="name"
v-model:newPlaceText="text">
<n-flex justify="end">
<n-button @click="mode = 'add'">Отмена</n-button>
<n-button @click="cancelAddPlace()">Отмена</n-button>
<n-button @click="addPlace()" :disabled="!code">Добавить точку</n-button>
</n-flex>
</PlaceBlock>