mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-15 11:42:15 +01:00
make No Project white in chart fixes ST-360
This commit is contained in:
committed by
Constantin Graf
parent
a4d6ba3cdb
commit
b990387775
@@ -79,6 +79,14 @@ export const useReportingStore = defineStore('reporting', () => {
|
||||
return reportingTableResponse.value?.data as AggregatedTimeEntries;
|
||||
});
|
||||
|
||||
const emptyPlaceholder = {
|
||||
user: 'No User',
|
||||
project: 'No Project',
|
||||
task: 'No Task',
|
||||
billable: 'Non-Billable',
|
||||
client: 'No Client',
|
||||
} as Record<string, string>;
|
||||
|
||||
function getNameForReportingRowEntry(
|
||||
key: string | null,
|
||||
type: string | null
|
||||
@@ -87,14 +95,6 @@ export const useReportingStore = defineStore('reporting', () => {
|
||||
return null;
|
||||
}
|
||||
if (key === null) {
|
||||
const emptyPlaceholder = {
|
||||
user: 'No User',
|
||||
project: 'No Project',
|
||||
task: 'No Task',
|
||||
billable: 'Non-Billable',
|
||||
client: 'No Client',
|
||||
};
|
||||
|
||||
return emptyPlaceholder[type as keyof typeof emptyPlaceholder];
|
||||
}
|
||||
|
||||
@@ -167,5 +167,6 @@ export const useReportingStore = defineStore('reporting', () => {
|
||||
aggregatedTableTimeEntries,
|
||||
getNameForReportingRowEntry,
|
||||
groupByOptions,
|
||||
emptyPlaceholder,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user