From 26d01485254c99db921e0c73de3e5675cc312d4b Mon Sep 17 00:00:00 2001 From: flfeders Date: Thu, 23 May 2024 10:31:07 +0200 Subject: [PATCH] Added Contract to Document Assign --- components/DocumentDisplay.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/DocumentDisplay.vue b/components/DocumentDisplay.vue index cbae8d1..65ef76f 100644 --- a/components/DocumentDisplay.vue +++ b/components/DocumentDisplay.vue @@ -100,6 +100,7 @@ const resourceOptions = ref([ {label: 'Lieferant', value: 'vendor', optionAttr: "name"}, {label: 'Fahrzeug', value: 'vehicle', optionAttr: "licensePlate"}, {label: 'Objekt', value: 'plant', optionAttr: "name"}, + {label: 'Vertrag', value: 'contract', optionAttr: "name"}, {label: 'Produkt', value: 'product', optionAttr: "name"} ]) const resourceToAssign = ref("project") @@ -118,6 +119,8 @@ const getItemsBySelectedResource = () => { itemOptions.value = dataStore.products } else if(resourceToAssign.value === "plant") { itemOptions.value = dataStore.plants + } else if(resourceToAssign.value === "contract") { + itemOptions.value = dataStore.contracts } else { itemOptions.value = [] }