mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fix selection input in QueryParameterModal
This commit is contained in:
@@ -14,11 +14,11 @@ import QueryParameterOption from './QueryParameterOption';
|
|||||||
import styles from './QueryParameterModal.css';
|
import styles from './QueryParameterModal.css';
|
||||||
|
|
||||||
const searchOptions = [
|
const searchOptions = [
|
||||||
{ key: 'search', value: 'Basic Search' },
|
{ key: 'search', value: translate('BasicSearch') },
|
||||||
{ key: 'tvsearch', value: 'TV Search' },
|
{ key: 'tvsearch', value: translate('TvSearch') },
|
||||||
{ key: 'movie', value: 'Movie Search' },
|
{ key: 'movie', value: translate('MovieSearch') },
|
||||||
{ key: 'music', value: 'Audio Search' },
|
{ key: 'music', value: translate( 'AudioSearch') },
|
||||||
{ key: 'book', value: 'Book Search' }
|
{ key: 'book', value: translate('BookSearch') }
|
||||||
];
|
];
|
||||||
|
|
||||||
const seriesTokens = [
|
const seriesTokens = [
|
||||||
@@ -94,8 +94,8 @@ class QueryParameterModal extends Component {
|
|||||||
const newValue = `${start}${tokenValue}${end}`;
|
const newValue = `${start}${tokenValue}${end}`;
|
||||||
|
|
||||||
onSearchInputChange({ name, value: newValue });
|
onSearchInputChange({ name, value: newValue });
|
||||||
this._selectionStart = newValue.length - 1;
|
this._selectionStart = newValue.length;
|
||||||
this._selectionEnd = newValue.length - 1;
|
this._selectionEnd = newValue.length;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -70,6 +70,7 @@
|
|||||||
"BackupNow": "Backup Now",
|
"BackupNow": "Backup Now",
|
||||||
"BackupRetentionHelpText": "Automatic backups older than the retention period will be cleaned up automatically",
|
"BackupRetentionHelpText": "Automatic backups older than the retention period will be cleaned up automatically",
|
||||||
"Backups": "Backups",
|
"Backups": "Backups",
|
||||||
|
"BasicSearch": "Basic Search",
|
||||||
"BeforeUpdate": "Before update",
|
"BeforeUpdate": "Before update",
|
||||||
"BindAddress": "Bind Address",
|
"BindAddress": "Bind Address",
|
||||||
"BindAddressHelpText": "Valid IP address, localhost or '*' for all interfaces",
|
"BindAddressHelpText": "Valid IP address, localhost or '*' for all interfaces",
|
||||||
|
Reference in New Issue
Block a user