1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-21 23:32:27 +00:00

Fixed disable options for SelectInput

This commit is contained in:
Bogdan 2024-07-14 23:19:20 +03:00
parent 56679861a0
commit 633feaa023
2 changed files with 3 additions and 1 deletions

View file

@ -25,7 +25,7 @@ function MonitorAlbumsSelectInput(props) {
if (includeMixed) {
values.unshift({
key: 'mixed',
value: '(Mixed)',
value: `(${translate('Mixed')})`,
isDisabled: true
});
}

View file

@ -52,6 +52,7 @@ class SelectInput extends Component {
const {
key,
value: optionValue,
isDisabled: optionIsDisabled = false,
...otherOptionProps
} = option;
@ -59,6 +60,7 @@ class SelectInput extends Component {
<option
key={key}
value={key}
disabled={optionIsDisabled}
{...otherOptionProps}
>
{typeof optionValue === 'function' ? optionValue() : optionValue}