Skip to content

Commit

Permalink
Revert "Revert "Alternate description for disabled filters""
Browse files Browse the repository at this point in the history
This reverts commit 27ed1d0.
  • Loading branch information
JasonWeill committed Nov 18, 2024
1 parent 4cb7111 commit 06b05d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/documentsearch/src/searchview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ class SearchOverlay extends React.Component<ISearchOverlayProps> {
description={
description + (name == 'selection' ? selectionKeyHint : '')
}
isEnabled={!showReplace || filter.supportReplace}
isEnabled={isEnabled}
onToggle={async () => {
await this.props.onFilterChanged(
name,
Expand Down
4 changes: 4 additions & 0 deletions packages/documentsearch/src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ export interface IFilter {
* Filter description
*/
description: string;
/**
* Filter description to be used when the filter is disabled in replace mode.
*/
disabledDescription?: string;
/**
* Default value
*/
Expand Down

0 comments on commit 06b05d3

Please sign in to comment.