mirror of
https://github.com/Readarr/Readarr
synced 2026-01-05 07:03:13 +01:00
Improve messaging for Interactive Search
(cherry picked from commit 7893fdde104959c4f3c32d9e1000e2479f7a5b12) Closes #2752
This commit is contained in:
parent
b84e83b082
commit
99c17d7698
2 changed files with 12 additions and 8 deletions
|
|
@ -1,10 +1,11 @@
|
|||
import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
import Alert from 'Components/Alert';
|
||||
import Icon from 'Components/Icon';
|
||||
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
|
||||
import Table from 'Components/Table/Table';
|
||||
import TableBody from 'Components/Table/TableBody';
|
||||
import { icons, sortDirections } from 'Helpers/Props';
|
||||
import { icons, kinds, sortDirections } from 'Helpers/Props';
|
||||
import translate from 'Utilities/String/translate';
|
||||
import InteractiveSearchRow from './InteractiveSearchRow';
|
||||
import styles from './InteractiveSearch.css';
|
||||
|
|
@ -112,17 +113,17 @@ function InteractiveSearch(props) {
|
|||
|
||||
{
|
||||
!isFetching && isPopulated && !totalReleasesCount ?
|
||||
<div className={styles.blankpad}>
|
||||
No results found
|
||||
</div> :
|
||||
<Alert kind={kinds.INFO}>
|
||||
{translate('NoResultsFound')}
|
||||
</Alert> :
|
||||
null
|
||||
}
|
||||
|
||||
{
|
||||
!!totalReleasesCount && isPopulated && !items.length ?
|
||||
<div className={styles.blankpad}>
|
||||
All results are hidden by the applied filter
|
||||
</div> :
|
||||
<Alert kind={kinds.WARNING}>
|
||||
{translate('AllResultsAreHiddenByTheAppliedFilter')}
|
||||
</Alert> :
|
||||
null
|
||||
}
|
||||
|
||||
|
|
@ -157,7 +158,7 @@ function InteractiveSearch(props) {
|
|||
{
|
||||
totalReleasesCount !== items.length && !!items.length ?
|
||||
<div className={styles.filteredMessage}>
|
||||
Some results are hidden by the applied filter
|
||||
{translate('SomeResultsAreHiddenByTheAppliedFilter')}
|
||||
</div> :
|
||||
null
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
"AllBooks": "All Books",
|
||||
"AllExpandedCollapseAll": "Collapse All",
|
||||
"AllExpandedExpandAll": "Expand All",
|
||||
"AllResultsAreHiddenByTheAppliedFilter": "All results are hidden by the applied filter",
|
||||
"AllowAuthorChangeClickToChangeAuthor": "Click to change author",
|
||||
"AllowFingerprinting": "Allow Fingerprinting",
|
||||
"AllowFingerprintingHelpText": "Use fingerprinting to improve accuracy of book matching",
|
||||
|
|
@ -571,6 +572,7 @@
|
|||
"NoMinimumForAnyRuntime": "No minimum for any runtime",
|
||||
"NoMissingItems": "No missing items",
|
||||
"NoName": "Do not show name",
|
||||
"NoResultsFound": "No results found",
|
||||
"NoTagsHaveBeenAddedYet": "No tags have been added yet. Add tags to link authors with delay profiles, restrictions, or notifications. Click {0} to find out more about tags in Readarr.",
|
||||
"NoUpdatesAreAvailable": "No updates are available",
|
||||
"None": "None",
|
||||
|
|
@ -846,6 +848,7 @@
|
|||
"SkipSecondarySeriesBooks": "Skip secondary series books",
|
||||
"Small": "Small",
|
||||
"SmartReplace": "Smart Replace",
|
||||
"SomeResultsAreHiddenByTheAppliedFilter": "Some results are hidden by the applied filter",
|
||||
"SorryThatAuthorCannotBeFound": "Sorry, that author cannot be found.",
|
||||
"SorryThatBookCannotBeFound": "Sorry, that book cannot be found.",
|
||||
"Source": "Source",
|
||||
|
|
|
|||
Loading…
Reference in a new issue