mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-11 01:32:16 +01:00
change detailed reporting to use time entries mass delete endpoint
This commit is contained in:
@@ -143,9 +143,7 @@ const totalPages = computed(() => {
|
||||
const timeEntriesStore = useTimeEntriesStore();
|
||||
|
||||
async function deleteTimeEntries(timeEntries: TimeEntry[]) {
|
||||
for (const timeEntry of timeEntries) {
|
||||
await timeEntriesStore.deleteTimeEntry(timeEntry.id);
|
||||
}
|
||||
await timeEntriesStore.deleteTimeEntries(timeEntries);
|
||||
selectedTimeEntries.value = [];
|
||||
await updateFilteredTimeEntries();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user