Fixed: Ensure the default monitoring type in Album Studio is not all

This commit is contained in:
Bogdan 2023-07-22 02:16:05 +03:00
parent 950dcd30f0
commit 7b01c85c76
7 changed files with 40 additions and 25 deletions

View file

@ -7,6 +7,7 @@ import SelectInput from './SelectInput';
function MonitorNewItemsSelectInput(props) {
const {
includeNoChange,
includeNoChangeDisabled = true,
includeMixed,
...otherProps
} = props;
@ -17,7 +18,7 @@ function MonitorNewItemsSelectInput(props) {
values.unshift({
key: 'noChange',
value: translate('NoChange'),
disabled: true
disabled: includeNoChangeDisabled
});
}
@ -39,6 +40,7 @@ function MonitorNewItemsSelectInput(props) {
MonitorNewItemsSelectInput.propTypes = {
includeNoChange: PropTypes.bool.isRequired,
includeNoChangeDisabled: PropTypes.bool,
includeMixed: PropTypes.bool.isRequired,
onChange: PropTypes.func.isRequired
};