Removed Draft Filtering
Changed Invoice Sorting
This commit is contained in:
@@ -23,11 +23,11 @@
|
|||||||
</UDashboardNavbar>
|
</UDashboardNavbar>
|
||||||
<UDashboardToolbar>
|
<UDashboardToolbar>
|
||||||
<template #left>
|
<template #left>
|
||||||
<UCheckbox
|
<!-- <UCheckbox
|
||||||
v-model="showDrafts"
|
v-model="showDrafts"
|
||||||
label="Entwürfe Anzeigen"
|
label="Entwürfe Anzeigen"
|
||||||
class="my-auto mr-3"
|
class="my-auto mr-3"
|
||||||
/>
|
/>-->
|
||||||
<USelectMenu
|
<USelectMenu
|
||||||
v-model="selectedTypes"
|
v-model="selectedTypes"
|
||||||
icon="i-heroicons-adjustments-horizontal-solid"
|
icon="i-heroicons-adjustments-horizontal-solid"
|
||||||
@@ -275,13 +275,13 @@ const filteredRows = computed(() => {
|
|||||||
|
|
||||||
let temp = items.value.filter(i => types.value.find(x => x.key === i.type))
|
let temp = items.value.filter(i => types.value.find(x => x.key === i.type))
|
||||||
|
|
||||||
if(showDrafts.value === true) {
|
/*if(showDrafts.value === true) {
|
||||||
temp = temp.filter(i => i.state === "Entwurf")
|
temp = temp.filter(i => i.state === "Entwurf")
|
||||||
} else {
|
} else {
|
||||||
temp = temp.filter(i => i.state !== "Entwurf")
|
temp = temp.filter(i => i.state !== "Entwurf")
|
||||||
}
|
}*/
|
||||||
|
|
||||||
return useSearch(searchString.value, temp)
|
return useSearch(searchString.value, temp.slice().reverse())
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user