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