mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 20:52:14 +01:00
add groupSimilarTimeEntries to TimeEntryGroupedTable
This commit is contained in:
@@ -20,25 +20,30 @@ const selectedTimeEntries = defineModel<TimeEntry[]>('selected', {
|
|||||||
default: [],
|
default: [],
|
||||||
});
|
});
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = withDefaults(
|
||||||
timeEntries: TimeEntry[];
|
defineProps<{
|
||||||
projects: Project[];
|
timeEntries: TimeEntry[];
|
||||||
tasks: Task[];
|
projects: Project[];
|
||||||
tags: Tag[];
|
tasks: Task[];
|
||||||
clients: Client[];
|
tags: Tag[];
|
||||||
createTag: (name: string) => Promise<Tag | undefined>;
|
clients: Client[];
|
||||||
updateTimeEntry: (entry: TimeEntry) => void;
|
createTag: (name: string) => Promise<Tag | undefined>;
|
||||||
updateTimeEntries: (ids: string[], changes: Partial<TimeEntry>) => void;
|
updateTimeEntry: (entry: TimeEntry) => void;
|
||||||
deleteTimeEntries: (entries: TimeEntry[]) => void;
|
updateTimeEntries: (ids: string[], changes: Partial<TimeEntry>) => void;
|
||||||
createTimeEntry: (entry: Omit<CreateTimeEntryBody, 'member_id'>) => void;
|
deleteTimeEntries: (entries: TimeEntry[]) => void;
|
||||||
createProject: (project: CreateProjectBody) => Promise<Project | undefined>;
|
createTimeEntry: (entry: Omit<CreateTimeEntryBody, 'member_id'>) => void;
|
||||||
createClient: (client: CreateClientBody) => Promise<Client | undefined>;
|
createProject: (project: CreateProjectBody) => Promise<Project | undefined>;
|
||||||
currency: string;
|
createClient: (client: CreateClientBody) => Promise<Client | undefined>;
|
||||||
organizationBillableRate: number | null;
|
currency: string;
|
||||||
enableEstimatedTime: boolean;
|
organizationBillableRate: number | null;
|
||||||
canCreateProject: boolean;
|
enableEstimatedTime: boolean;
|
||||||
groupSimilarTimeEntries: boolean;
|
canCreateProject: boolean;
|
||||||
}>();
|
groupSimilarTimeEntries?: boolean;
|
||||||
|
}>(),
|
||||||
|
{
|
||||||
|
groupSimilarTimeEntries: true,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
const groupedTimeEntries = computed(() => {
|
const groupedTimeEntries = computed(() => {
|
||||||
const groupedEntriesByDay: Record<string, TimeEntry[]> = {};
|
const groupedEntriesByDay: Record<string, TimeEntry[]> = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user