Skip to content

Commit

Permalink
#1203 - display filter names in dashboard listing. fixed bug in setti…
Browse files Browse the repository at this point in the history
…ng scope.
  • Loading branch information
petmongrels committed Jul 17, 2024
1 parent c2b330b commit d23d337
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/adminApp/components/CreateEditFiltersV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export const CreateEditFiltersV2 = ({ selectedFilter, operationalModules, docume
value={_.get(filterConfig.observationBasedFilter, "scope")}
options={scopeOptions}
onChange={scope => {
filterConfig.observationBasedFilter.scope = scope.value;
filterConfig.observationBasedFilter.setScope(scope.value);
updateFilterConfig();
}}
toolTipKey="APP_DESIGNER_FILTER_SEARCH_SCOPE"
Expand Down
12 changes: 9 additions & 3 deletions src/formDesigner/components/Dashboard/DashboardList.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@ const DashboardList = ({ history, userInfo }) => {
const columns = [
{
title: "Name",
render: rowData =>
!rowData.voided && <a href={`#/appDesigner/dashboard/${rowData.id}/show`}>{rowData.name}</a>
render: rowData => !rowData.voided && <a href={`#/appDesigner/dashboard/${rowData.id}/show`}>{rowData.name}</a>,
sorting: false
},
{
title: "Filters",
render: rowData => rowData.filters.map(filter => filter.name).join(", "),
sorting: false
},
{
title: "Description",
render: rowData => rowData.description
render: rowData => rowData.description,
sorting: false
}
];

Expand Down

0 comments on commit d23d337

Please sign in to comment.