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 = [] }