Changes
This commit is contained in:
@@ -43,6 +43,8 @@ const historyItems = computed(() => {
|
||||
items = dataStore.historyItems.filter(i => i.inventoryitem === elementId)
|
||||
} else if(type === "product") {
|
||||
items = dataStore.historyItems.filter(i => i.product === elementId)
|
||||
} else if(type === "profile") {
|
||||
items = dataStore.historyItems.filter(i => i.profile === elementId)
|
||||
}
|
||||
|
||||
return items
|
||||
@@ -76,6 +78,8 @@ const addHistoryItem = async () => {
|
||||
addHistoryItemData.value.inventoryitem = elementId
|
||||
} else if(type === "product") {
|
||||
addHistoryItemData.value.product = elementId
|
||||
} else if(type === "profile") {
|
||||
addHistoryItemData.value.profile = elementId
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user