Allow editing fsp/lsp in planner.

This is a very basic implementation and doesn't
check that the points are indeed valid.

A proper solution is to request the list of preplots
for that line from the server and validate against those.
This commit is contained in:
D. Berge
2020-10-09 15:09:43 +02:00
parent 2031922d68
commit c0e25ac36f

View File

@@ -80,6 +80,44 @@
</v-edit-dialog>
</template>
<template v-slot:item.fsp="{item, value}">
<v-edit-dialog
large
@open="editItem(item, 'fsp')"
@save="edit = null"
@cancel="edit.value = item.fsp; edit = null"
>
<span>{{ value }}</span>
<template v-slot:input>
<v-text-field v-if="edit"
type="number"
v-model.number="edit.value"
single-line
>
</v-text-field>
</template>
</v-edit-dialog>
</template>
<template v-slot:item.lsp="{item, value}">
<v-edit-dialog
large
@open="editItem(item, 'lsp')"
@save="edit = null"
@cancel="edit.value = item.lsp; edit = null"
>
<span>{{ value }}</span>
<template v-slot:input>
<v-text-field v-if="edit"
type="number"
v-model.number="edit.value"
single-line
>
</v-text-field>
</template>
</v-edit-dialog>
</template>
<template v-slot:item.ts0="{item, value}">
<v-edit-dialog
large