mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-11 01:32:16 +01:00
add archiving for clients, fixes ST-279
This commit is contained in:
committed by
Constantin Graf
parent
5592d87cd5
commit
19cc05140a
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user