add groupSimilarTimeEntries to TimeEntryGroupedTable

This commit is contained in:
Gregor Vostrak
2026-04-21 20:44:33 +02:00
parent f8e668790b
commit 2d6f9e514f

View File

@@ -20,7 +20,8 @@ const selectedTimeEntries = defineModel<TimeEntry[]>('selected', {
default: [],
});
const props = defineProps<{
const props = withDefaults(
defineProps<{
timeEntries: TimeEntry[];
projects: Project[];
tasks: Task[];
@@ -37,8 +38,12 @@ const props = defineProps<{
organizationBillableRate: number | null;
enableEstimatedTime: boolean;
canCreateProject: boolean;
groupSimilarTimeEntries: boolean;
}>();
groupSimilarTimeEntries?: boolean;
}>(),
{
groupSimilarTimeEntries: true,
}
);
const groupedTimeEntries = computed(() => {
const groupedEntriesByDay: Record<string, TimeEntry[]> = {};