add archiving for clients, fixes ST-279

This commit is contained in:
Gregor Vostrak
2024-09-06 16:27:37 +02:00
committed by Constantin Graf
parent 5592d87cd5
commit 19cc05140a
8 changed files with 75 additions and 10 deletions

View File

@@ -29,6 +29,10 @@ const props = defineProps<{
currency: string;
}>();
const activeClients = computed(() => {
return props.clients.filter((client) => !client.is_archived);
});
const project = ref<CreateProjectBody>({
name: '',
color: getRandomColor(),
@@ -100,7 +104,7 @@ const currentClientName = computed(() => {
<InputLabel for="client" value="Client" />
<ClientDropdown
:createClient="createClient"
:clients="clients"
:clients="activeClients"
class="mt-2"
v-model="project.client_id">
<template #trigger>