Removed Draft Filtering
Changed Invoice Sorting
This commit is contained in:
@@ -23,11 +23,11 @@
|
||||
</UDashboardNavbar>
|
||||
<UDashboardToolbar>
|
||||
<template #left>
|
||||
<UCheckbox
|
||||
<!-- <UCheckbox
|
||||
v-model="showDrafts"
|
||||
label="Entwürfe Anzeigen"
|
||||
class="my-auto mr-3"
|
||||
/>
|
||||
/>-->
|
||||
<USelectMenu
|
||||
v-model="selectedTypes"
|
||||
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))
|
||||
|
||||
if(showDrafts.value === true) {
|
||||
/*if(showDrafts.value === true) {
|
||||
temp = temp.filter(i => i.state === "Entwurf")
|
||||
} else {
|
||||
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