Added TempStore to createddocuments and incominginvoices

This commit is contained in:
2025-07-31 17:52:17 +02:00
parent 86a12cc223
commit 472ee0fd53
2 changed files with 29 additions and 2 deletions

View File

@@ -9,11 +9,19 @@
placeholder="Suche..."
class="hidden lg:block"
@keydown.esc="$event.target.blur()"
@change="tempStore.modifySearchString('createddocuments',searchString)"
>
<template #trailing>
<UKbd value="/" />
</template>
</UInput>
<UButton
icon="i-heroicons-x-mark"
variant="outline"
color="rose"
@click="clearSearchString()"
v-if="searchString.length > 0"
/>
<UButton
@click="router.push(`/createDocument/edit`)"
>
@@ -295,7 +303,12 @@ const displayCurrency = (value, currency = "€") => {
}
const searchString = ref('')
const searchString = ref(tempStore.searchStrings['createddocuments'] ||'')
const clearSearchString = () => {
tempStore.clearSearchString('createddocuments')
searchString.value = ''
}
const selectedFilters = ref([])
const filteredRows = computed(() => {