mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-08 05:51:47 -07:00
New: Custom Filtering for UI (#234)
This commit is contained in:
parent
c6873014c7
commit
7354e02bff
154 changed files with 3498 additions and 1370 deletions
|
@ -155,7 +155,7 @@ class ArtistSearchInput extends Component {
|
|||
this.reset();
|
||||
}
|
||||
|
||||
onSuggestionSelected = (event, { suggestion, sectionIndex }) => {
|
||||
onSuggestionSelected = (event, { suggestion }) => {
|
||||
if (suggestion.type === ADD_NEW_TYPE) {
|
||||
this.props.onGoToAddNewArtist(this.state.value);
|
||||
} else {
|
||||
|
@ -181,7 +181,7 @@ class ArtistSearchInput extends Component {
|
|||
});
|
||||
}
|
||||
|
||||
if (suggestions.length <= 3) {
|
||||
if (value.length >= 3) {
|
||||
suggestionGroups.push({
|
||||
title: 'Add New Artist',
|
||||
suggestions: [
|
||||
|
@ -218,10 +218,7 @@ class ArtistSearchInput extends Component {
|
|||
|
||||
return (
|
||||
<div className={styles.wrapper}>
|
||||
<Icon
|
||||
className={styles.icon}
|
||||
name={icons.SEARCH}
|
||||
/>
|
||||
<Icon name={icons.SEARCH} />
|
||||
|
||||
<Autosuggest
|
||||
ref={this.setAutosuggestRef}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue