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

@@ -68,15 +68,12 @@ export const useTasksStore = defineStore('tasks', () => {
if (organizationId) {
await handleApiRequestNotifications(
() =>
api.deleteTask(
{},
{
params: {
organization: organizationId,
task: taskId,
},
}
),
api.deleteTask(undefined, {
params: {
organization: organizationId,
task: taskId,
},
}),
'Task deleted successfully',
'Failed to delete task'
);