Removed Draft Filtering

Changed Invoice Sorting
This commit is contained in:
2024-07-22 11:01:20 +02:00
parent 8f7cfe8362
commit c776100ed0

View File

@@ -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())
})