- Progress check

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-02-09 10:59:04 -05:00
parent 351e46ad6b
commit 3fbd1b2ee0
2 changed files with 218 additions and 214 deletions

View File

@@ -150,7 +150,7 @@ export function ReportCenterModalComponent({reportCenterModal}) {
<Typography.Title level={4}> <Typography.Title level={4}>
{t(`reportcenter.labels.groups.${key}`)} {t(`reportcenter.labels.groups.${key}`)}
</Typography.Title> </Typography.Title>
<ul style={{columns: "2 auto"}}> <ul style={{ listStyleType: 'none', columns: "2 auto"}}>
{grouped[key].map((item) => ( {grouped[key].map((item) => (
<li key={item.key}> <li key={item.key}>
<Radio key={item.key} value={item.key}> <Radio key={item.key} value={item.key}>

View File

@@ -58,10 +58,14 @@ function RenderFilters({ templateId }) {
<Select <Select
options={ options={
state.filters state.filters
? state.filters.map((f) => ({ ? state.filters.map((f) => {
console.log('filter added');
console.dir(f);
return {
value: f.name, value: f.name,
label: t(f.translation), label: f?.translation ? t(f.translation) : f.label,
})) }
})
: [] : []
} }
/> />
@@ -161,7 +165,7 @@ function RenderFilters({ templateId }) {
state.sorters state.sorters
? state.sorters.map((f) => ({ ? state.sorters.map((f) => ({
value: f.name, value: f.name,
label: t(f.name), label: t(f.translation),
})) }))
: [] : []
} }