diff --git a/frontend/src/Artist/Index/Select/Edit/EditArtistModalContent.tsx b/frontend/src/Artist/Index/Select/Edit/EditArtistModalContent.tsx index a47602b48..befd4a434 100644 --- a/frontend/src/Artist/Index/Select/Edit/EditArtistModalContent.tsx +++ b/frontend/src/Artist/Index/Select/Edit/EditArtistModalContent.tsx @@ -14,6 +14,7 @@ import styles from './EditArtistModalContent.css'; interface SavePayload { monitored?: boolean; + monitorNewItems?: string; qualityProfileId?: number; metadataProfileId?: number; rootFolderPath?: string; @@ -54,6 +55,7 @@ function EditArtistModalContent(props: EditArtistModalContentProps) { const { artistIds, onSavePress, onModalClose } = props; const [monitored, setMonitored] = useState(NO_CHANGE); + const [monitorNewItems, setMonitorNewItems] = useState(NO_CHANGE); const [qualityProfileId, setQualityProfileId] = useState( NO_CHANGE ); @@ -73,6 +75,11 @@ function EditArtistModalContent(props: EditArtistModalContentProps) { payload.monitored = monitored === 'monitored'; } + if (monitorNewItems !== NO_CHANGE) { + hasChanges = true; + payload.monitorNewItems = monitorNewItems; + } + if (qualityProfileId !== NO_CHANGE) { hasChanges = true; payload.qualityProfileId = qualityProfileId as number; @@ -97,6 +104,7 @@ function EditArtistModalContent(props: EditArtistModalContentProps) { }, [ monitored, + monitorNewItems, qualityProfileId, metadataProfileId, rootFolderPath, @@ -111,6 +119,9 @@ function EditArtistModalContent(props: EditArtistModalContentProps) { case 'monitored': setMonitored(value); break; + case 'monitorNewItems': + setMonitorNewItems(value); + break; case 'qualityProfileId': setQualityProfileId(value); break; @@ -168,6 +179,20 @@ function EditArtistModalContent(props: EditArtistModalContentProps) { /> + + {translate('MonitorNewItems')} + + + + {translate('QualityProfile')}