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

@@ -25,6 +25,13 @@ const projectCount = computed(() => {
).length;
});
function archiveClient() {
useClientsStore().updateClient(props.client.id, {
...props.client,
is_archived: !props.client.is_archived,
});
}
const showEditModal = ref(false);
</script>
@@ -50,6 +57,7 @@ const showEditModal = ref(false);
<ClientMoreOptionsDropdown
:client="client"
@edit="showEditModal = true"
@archive="archiveClient"
@delete="deleteClient"></ClientMoreOptionsDropdown>
</div>
</TableRow>