mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 16:13:58 -07:00
Fixed: (UI) Ensure autofocus on filter input in Manual Import
Fixes #3905
This commit is contained in:
parent
36f0108617
commit
17db815984
3 changed files with 12 additions and 5 deletions
|
@ -88,14 +88,17 @@ class SelectAlbumModalContent extends Component {
|
|||
}
|
||||
<TextInput
|
||||
className={styles.filterInput}
|
||||
placeholder={translate('FilterPlaceHolder')}
|
||||
placeholder={translate('FilterAlbumPlaceholder')}
|
||||
name="filter"
|
||||
value={filter}
|
||||
autoFocus={true}
|
||||
onChange={this.onFilterChange}
|
||||
/>
|
||||
|
||||
<Scroller className={styles.scroller}>
|
||||
<Scroller
|
||||
className={styles.scroller}
|
||||
autoFocus={false}
|
||||
>
|
||||
{
|
||||
<Table
|
||||
columns={columns}
|
||||
|
|
|
@ -56,14 +56,17 @@ class SelectArtistModalContent extends Component {
|
|||
>
|
||||
<TextInput
|
||||
className={styles.filterInput}
|
||||
placeholder={translate('FilterPlaceHolder')}
|
||||
placeholder={translate('FilterArtistPlaceholder')}
|
||||
name="filter"
|
||||
value={filter}
|
||||
autoFocus={true}
|
||||
onChange={this.onFilterChange}
|
||||
/>
|
||||
|
||||
<Scroller className={styles.scroller}>
|
||||
<Scroller
|
||||
className={styles.scroller}
|
||||
autoFocus={false}
|
||||
>
|
||||
{
|
||||
items.map((item) => {
|
||||
return item.artistName.toLowerCase().includes(filter) ?
|
||||
|
|
|
@ -352,7 +352,8 @@
|
|||
"FileNames": "File Names",
|
||||
"Filename": "Filename",
|
||||
"Files": "Files",
|
||||
"FilterPlaceHolder": "Filter artist",
|
||||
"FilterAlbumPlaceholder": "Filter album",
|
||||
"FilterArtistPlaceholder": "Filter artist",
|
||||
"Filters": "Filters",
|
||||
"FirstAlbum": "First Album",
|
||||
"FirstAlbumData": "Monitor the first albums. All other albums will be ignored",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue