next and running inspections

This commit is contained in:
Julian Krauser 2025-07-10 13:22:38 +02:00
parent 1409cf8045
commit 74b05ee97f
14 changed files with 280 additions and 75 deletions

View file

@ -6,7 +6,7 @@
<div class="p-2">
<p v-if="inspectionPoint.description" class="pb-2">Beschreibung: {{ inspectionPoint.description }}</p>
<hr v-if="inspectionPoint.description" />
<RadioGroup v-model="value" :name="inspectionPoint.id" class="flex flex-row gap-2">
<RadioGroup v-model="value" :name="inspectionPoint.id" class="flex flex-row gap-2" :disabled="!editable">
<RadioGroupOption
v-for="option in options"
:key="option.key"
@ -39,6 +39,10 @@ export default defineComponent({
type: String as PropType<"true" | "false" | "">,
default: "",
},
editable: {
type: Boolean,
default: true,
},
},
emits: ["update:model-value"],
data() {