Fix
This commit is contained in:
@@ -58,7 +58,7 @@ const clearSearchString = () => {
|
||||
searchString.value = ''
|
||||
}
|
||||
|
||||
const filterAccount = ref(bankaccounts || [])
|
||||
const filterAccount = ref(bankaccounts.value || [])
|
||||
|
||||
const displayCurrency = (value, currency = "€") => {
|
||||
return `${Number(value).toFixed(2).replace(".",",")} ${currency}`
|
||||
@@ -150,7 +150,7 @@ setupPage()
|
||||
</USelectMenu>
|
||||
</template>
|
||||
<template #right>
|
||||
<USelectMenu
|
||||
<!-- <USelectMenu
|
||||
v-model="selectedColumns"
|
||||
icon="i-heroicons-adjustments-horizontal-solid"
|
||||
:options="templateColumns"
|
||||
@@ -162,7 +162,7 @@ setupPage()
|
||||
<template #label>
|
||||
Spalten
|
||||
</template>
|
||||
</USelectMenu>
|
||||
</USelectMenu>-->
|
||||
<USelectMenu
|
||||
icon="i-heroicons-adjustments-horizontal-solid"
|
||||
multiple
|
||||
|
||||
@@ -12,7 +12,7 @@ defineShortcuts({
|
||||
})
|
||||
|
||||
const dataStore = useDataStore()
|
||||
const profileStore = useProfileStore()
|
||||
const tempStore = useTempStore()
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
const mode = ref(route.params.mode || "show")
|
||||
@@ -177,7 +177,14 @@ const removeAllocation = async (allocationId) => {
|
||||
await setup()
|
||||
}
|
||||
|
||||
const searchString = ref("")
|
||||
const searchString = ref(tempStore.searchStrings["bankstatementsedit"] ||'')
|
||||
|
||||
const clearSearchString = () => {
|
||||
searchString.value = ''
|
||||
tempStore.clearSearchString("bankstatementsedit")
|
||||
|
||||
}
|
||||
|
||||
const filteredDocuments = computed(() => {
|
||||
|
||||
|
||||
@@ -546,7 +553,15 @@ const archiveStatement = async () => {
|
||||
class="mr-3 mt-3"
|
||||
@click="removeAllocation(item.id)"
|
||||
/>
|
||||
<UButton
|
||||
icon="i-heroicons-eye"
|
||||
variant="outline"
|
||||
color="primary"
|
||||
class="mr-3 mt-3"
|
||||
@click="navigateTo(`/createDocument/show/${item.createddocument}`)"
|
||||
/>
|
||||
</UCard>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -780,6 +795,7 @@ const archiveStatement = async () => {
|
||||
placeholder="Suche..."
|
||||
class="hidden lg:block w-full mr-1"
|
||||
@keydown.esc="$event.target.blur()"
|
||||
@change="tempStore.modifySearchString('bankstatementsedit',searchString)"
|
||||
>
|
||||
<template #trailing>
|
||||
<UKbd value="/" />
|
||||
@@ -789,7 +805,7 @@ const archiveStatement = async () => {
|
||||
variant="outline"
|
||||
icon="i-heroicons-x-mark"
|
||||
color="rose"
|
||||
@click="searchString = ''"
|
||||
@click="clearSearchString"
|
||||
/>
|
||||
</InputGroup>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user