mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
Added: Additional Album Monitoring Options
This commit is contained in:
parent
af090c7a3a
commit
f9fb33eb08
10 changed files with 102 additions and 95 deletions
|
@ -4,11 +4,11 @@ import SelectInput from './SelectInput';
|
|||
|
||||
const monitorOptions = [
|
||||
{ key: 'all', value: 'All Albums' },
|
||||
// { key: 'future', value: 'Future Albums' },
|
||||
// { key: 'missing', value: 'Missing Albums' },
|
||||
// { key: 'existing', value: 'Existing Albums' },
|
||||
// { key: 'first', value: 'Only First Album' },
|
||||
// { key: 'latest', value: 'Only Latest Album' },
|
||||
{ key: 'future', value: 'Future Albums' },
|
||||
{ key: 'missing', value: 'Missing Albums' },
|
||||
{ key: 'existing', value: 'Existing Albums' },
|
||||
{ key: 'first', value: 'Only First Album' },
|
||||
{ key: 'latest', value: 'Only Latest Album' },
|
||||
{ key: 'none', value: 'None' }
|
||||
];
|
||||
|
||||
|
|
|
@ -2,26 +2,32 @@ import _ from 'lodash';
|
|||
|
||||
function getMonitoringOptions(monitor) {
|
||||
const monitoringOptions = {
|
||||
ignoreAlbumsWithFiles: false,
|
||||
ignoreAlbumsWithoutFiles: false,
|
||||
selectedOption: 0,
|
||||
monitored: true
|
||||
};
|
||||
|
||||
switch (monitor) {
|
||||
case 'future':
|
||||
monitoringOptions.ignoreAlbumsWithFiles = true;
|
||||
monitoringOptions.ignoreAlbumsWithoutFiles = true;
|
||||
monitoringOptions.selectedOption = 1;
|
||||
break;
|
||||
case 'missing':
|
||||
monitoringOptions.ignoreAlbumsWithFiles = true;
|
||||
monitoringOptions.selectedOption = 2;
|
||||
break;
|
||||
case 'existing':
|
||||
monitoringOptions.ignoreAlbumsWithoutFiles = true;
|
||||
monitoringOptions.selectedOption = 3;
|
||||
break;
|
||||
case 'first':
|
||||
monitoringOptions.selectedOption = 5;
|
||||
break;
|
||||
case 'latest':
|
||||
monitoringOptions.selectedOption = 4;
|
||||
break;
|
||||
case 'none':
|
||||
monitoringOptions.monitored = false;
|
||||
monitoringOptions.selectedOption = 6;
|
||||
break;
|
||||
default:
|
||||
monitoringOptions.selectedOption = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue