Skip to content

Commit

Permalink
Show warning about active filters; always show them in edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Dec 26, 2022
1 parent db890d5 commit 208c490
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion searchlib/components/SearchView/FilterAsideContentView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ export const FilterAsideContentView = (props) => {

return (
<>
<ActiveFilterList />
{appConfig.mode === 'edit' && (
<div>Active filters are always shown in edit mode</div>
)}
{(appConfig.showFilters || appConfig.mode === 'edit') && (
<ActiveFilterList />
)}
{appConfig.showFilters && <SectionTabs />}
<div className={`results-layout ${layoutMode}`}>
{appConfig.showFilters && (
Expand Down
3 changes: 2 additions & 1 deletion src/SearchBlock/SearchBlockView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ function SearchBlockView(props) {
}
: {}),
},
mode,
};
return reg;
}, [appName, stableData, schema]);
}, [appName, stableData, schema, mode]);

const Variation = variation.view;

Expand Down

0 comments on commit 208c490

Please sign in to comment.