refactor timetracker to seperate data and ui logic

This commit is contained in:
Gregor Vostrak
2024-07-22 17:56:51 +02:00
parent a9c874e540
commit 06fef6e40f
41 changed files with 1984 additions and 961 deletions

View File

@@ -76,15 +76,12 @@ export const useClientsStore = defineStore('clients', () => {
if (organization) {
await handleApiRequestNotifications(
() =>
api.deleteClient(
{},
{
params: {
organization: organization,
client: clientId,
},
}
),
api.deleteClient(undefined, {
params: {
organization: organization,
client: clientId,
},
}),
'Client deleted successfully',
'Failed to delete client'
);