diff --git a/frontend/src/InteractiveSearch/InteractiveSearch.js b/frontend/src/InteractiveSearch/InteractiveSearch.js index e8502788a..467cc9258 100644 --- a/frontend/src/InteractiveSearch/InteractiveSearch.js +++ b/frontend/src/InteractiveSearch/InteractiveSearch.js @@ -1,12 +1,13 @@ import PropTypes from 'prop-types'; import React, { Fragment } from 'react'; +import Alert from 'Components/Alert'; import Icon from 'Components/Icon'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import FilterMenu from 'Components/Menu/FilterMenu'; import PageMenuButton from 'Components/Menu/PageMenuButton'; import Table from 'Components/Table/Table'; import TableBody from 'Components/Table/TableBody'; -import { align, icons, sortDirections } from 'Helpers/Props'; +import { align, icons, kinds, sortDirections } from 'Helpers/Props'; import getErrorMessage from 'Utilities/Object/getErrorMessage'; import translate from 'Utilities/String/translate'; import InteractiveSearchFilterModalConnector from './InteractiveSearchFilterModalConnector'; @@ -149,17 +150,17 @@ function InteractiveSearch(props) { { !isFetching && isPopulated && !totalReleasesCount ? -
- No results found -
: + + {translate('NoResultsFound')} + : null } { !!totalReleasesCount && isPopulated && !items.length ? -
- All results are hidden by the applied filter -
: + + {translate('AllResultsAreHiddenByTheAppliedFilter')} + : null } @@ -194,7 +195,7 @@ function InteractiveSearch(props) { { totalReleasesCount !== items.length && !!items.length ?
- Some results are hidden by the applied filter + {translate('SomeResultsAreHiddenByTheAppliedFilter')}
: null } diff --git a/src/NzbDrone.Core/Localization/Core/en.json b/src/NzbDrone.Core/Localization/Core/en.json index 6a468aaf6..ad5517476 100644 --- a/src/NzbDrone.Core/Localization/Core/en.json +++ b/src/NzbDrone.Core/Localization/Core/en.json @@ -13,6 +13,7 @@ "Age": "Age", "AirDate": "Air Date", "All": "All", + "AllResultsAreHiddenByTheAppliedFilter": "All results are hidden by the applied filter", "AllTitles": "All Titles", "ApiKeyValidationHealthCheckMessage": "Please update your API key to be at least {0} characters long. You can do this via settings or the config file", "AppDataDirectory": "AppData directory", @@ -239,6 +240,7 @@ "NoIssuesWithYourConfiguration": "No issues with your configuration", "NoLeaveIt": "No, Leave It", "NoLogFiles": "No log files", + "NoResultsFound": "No results found", "NoSeasons": "No seasons", "NoUpdatesAreAvailable": "No updates are available", "NotSeasonPack": "Not Season Pack", @@ -356,6 +358,7 @@ "SizeOnDisk": "Size on disk", "SkipRedownload": "Skip Redownload", "SkipRedownloadHelpText": "Prevents Sonarr from trying to download an alternative release for this item", + "SomeResultsAreHiddenByTheAppliedFilter": "Some results are hidden by the applied filter", "Source": "Source", "SourceTitle": "Source Title", "Special": "Special",