mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 07:47:07 +00:00
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:
@@ -80,6 +80,44 @@
|
|||||||
</v-edit-dialog>
|
</v-edit-dialog>
|
||||||
</template>
|
</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}">
|
<template v-slot:item.ts0="{item, value}">
|
||||||
<v-edit-dialog
|
<v-edit-dialog
|
||||||
large
|
large
|
||||||
|
|||||||
Reference in New Issue
Block a user