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