Skip to content

Commit

Permalink
Merge pull request #2986 from leSamo/clear-filters
Browse files Browse the repository at this point in the history
Global filter to use 'Reset filters' instead of 'Clear filters'
  • Loading branch information
Hyperkid123 authored Jan 2, 2025
2 parents dccba35 + 20a2ad3 commit cb3a57e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions locales/translation-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
"defaultMessage": "or check our",
"description": "or check our"
},
"clearFilters": {
"defaultMessage": "Clear filters",
"description": "Clear filters"
"resetFilters": {
"defaultMessage": "Reset filters",
"description": "Reset filters"
},
"close": {
"defaultMessage": "Close",
Expand Down
2 changes: 1 addition & 1 deletion src/components/GlobalFilter/GlobalFilterMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export const GlobalFilterDropdown: React.FunctionComponent<GlobalFilterDropdownP
filter?.onFilter?.('');
}}
>
{intl.formatMessage(messages.clearFilters)}
{intl.formatMessage(messages.resetFilters)}
</Button>
)}
</Fragment>
Expand Down
8 changes: 4 additions & 4 deletions src/locales/Messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ export default defineMessages({
description: 'Show more',
defaultMessage: 'Show more',
},
clearFilters: {
id: 'clearFilters',
description: 'Clear filters',
defaultMessage: 'Clear filters',
resetFilters: {
id: 'resetFilters',
description: 'Reset filters',
defaultMessage: 'Reset filters',
},
noInventoryPermissions: {
id: 'noInventoryPermissions',
Expand Down
2 changes: 1 addition & 1 deletion src/locales/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"cancel": "Cancel",
"changesComing": "Changes are coming to cloud.redhat.com on July 29.",
"checkOur": "or check our",
"clearFilters": "Clear filters",
"resetFilters": "Reset filters",
"close": "Close",
"demoMode": "Demo mode",
"describeBug": "Describe the bug you encountered. For urgent issues, open a support case instead.",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"cancel": "Cancel",
"changesComing": "Changes are coming to cloud.redhat.com on July 29.",
"checkOur": "or check our",
"clearFilters": "Clear filters",
"resetFilters": "Reset filters",
"close": "Close",
"demoMode": "Demo mode",
"describeBug": "Describe the bug you encountered. For urgent issues, open a support case instead.",
Expand Down

0 comments on commit cb3a57e

Please sign in to comment.