Added texttemplates Archiving
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
const texttemplates = ref([])
|
||||
|
||||
const setup = async () => {
|
||||
texttemplates.value = await useSupabaseSelect("texttemplates")
|
||||
texttemplates.value = (await useSupabaseSelect("texttemplates")).filter(i => !i.archived)
|
||||
}
|
||||
|
||||
setup()
|
||||
@@ -85,11 +85,25 @@
|
||||
<p class="text-xl mt-3">{{row.pos === 'startText' ? 'Einleitung' : 'Ende'}}</p>
|
||||
<p class="text-justify mt-3">{{row.text}}</p>
|
||||
<UButton
|
||||
class="mt-3"
|
||||
class="mt-3 mr-3"
|
||||
@click="itemInfo = row;
|
||||
editTemplateModalOpen = true"
|
||||
variant="outline"
|
||||
>Bearbeiten</UButton>
|
||||
<ButtonWithConfirm
|
||||
color="rose"
|
||||
variant="outline"
|
||||
@confirmed="dataStore.updateItem('texttemplates',{id: row.id,archived: true}),
|
||||
setup"
|
||||
>
|
||||
<template #button>
|
||||
Archivieren
|
||||
</template>
|
||||
<template #header>
|
||||
<span class="text-md dark:text-whitetext-black font-bold">Archivieren bestätigen</span>
|
||||
</template>
|
||||
Möchten Sie diesen Ausgangsbeleg wirklich archivieren?
|
||||
</ButtonWithConfirm>
|
||||
</div>
|
||||
</template>
|
||||
</UTable>
|
||||
|
||||
Reference in New Issue
Block a user