mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 12:42:15 +01:00
add mass updates to time entry aggregate rows, make package actions run on manual dispatch
This commit is contained in:
@@ -32,10 +32,8 @@ const { timeEntries, allTimeEntriesLoaded } = storeToRefs(timeEntriesStore);
|
||||
const { updateTimeEntry, fetchTimeEntries, createTimeEntry } =
|
||||
useTimeEntriesStore();
|
||||
|
||||
function updateTimeEntries(timeEntries: TimeEntry[]) {
|
||||
timeEntries.forEach((entry) => {
|
||||
useTimeEntriesStore().updateTimeEntry(entry);
|
||||
});
|
||||
function updateTimeEntries(ids: string[], changes: Partial<TimeEntry>) {
|
||||
useTimeEntriesStore().updateTimeEntries(ids, changes);
|
||||
fetchTimeEntries();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user