mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 981a3c2db3 | |||
| 3f2ea56bf9 | |||
| 1679ed1327 | |||
| 69a1c1b21b | |||
| 5bd51832a0 |
+1
-1
@@ -9,7 +9,7 @@ variables:
|
|||||||
testsFolder: './_tests'
|
testsFolder: './_tests'
|
||||||
yarnCacheFolder: $(Pipeline.Workspace)/.yarn
|
yarnCacheFolder: $(Pipeline.Workspace)/.yarn
|
||||||
nugetCacheFolder: $(Pipeline.Workspace)/.nuget/packages
|
nugetCacheFolder: $(Pipeline.Workspace)/.nuget/packages
|
||||||
majorVersion: '5.22.3'
|
majorVersion: '5.22.4'
|
||||||
minorVersion: $[counter('minorVersion', 2000)]
|
minorVersion: $[counter('minorVersion', 2000)]
|
||||||
radarrVersion: '$(majorVersion).$(minorVersion)'
|
radarrVersion: '$(majorVersion).$(minorVersion)'
|
||||||
buildName: '$(Build.SourceBranchName).$(radarrVersion)'
|
buildName: '$(Build.SourceBranchName).$(radarrVersion)'
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import React, { useCallback } from 'react';
|
import React, { useCallback, useEffect } from 'react';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
import Modal from 'Components/Modal/Modal';
|
import Modal from 'Components/Modal/Modal';
|
||||||
|
import usePrevious from 'Helpers/Hooks/usePrevious';
|
||||||
import { clearPendingChanges } from 'Store/Actions/baseActions';
|
import { clearPendingChanges } from 'Store/Actions/baseActions';
|
||||||
import AddNewMovieCollectionMovieModalContent, {
|
import AddNewMovieCollectionMovieModalContent, {
|
||||||
AddNewMovieCollectionMovieModalContentProps,
|
AddNewMovieCollectionMovieModalContentProps,
|
||||||
@@ -18,11 +19,19 @@ function AddNewMovieCollectionMovieModal({
|
|||||||
}: AddNewCollectionMovieModalProps) {
|
}: AddNewCollectionMovieModalProps) {
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
|
|
||||||
|
const wasOpen = usePrevious(isOpen);
|
||||||
|
|
||||||
const handleModalClose = useCallback(() => {
|
const handleModalClose = useCallback(() => {
|
||||||
dispatch(clearPendingChanges({ section: 'movieCollections' }));
|
dispatch(clearPendingChanges({ section: 'movieCollections' }));
|
||||||
onModalClose();
|
onModalClose();
|
||||||
}, [dispatch, onModalClose]);
|
}, [dispatch, onModalClose]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (wasOpen && !isOpen) {
|
||||||
|
dispatch(clearPendingChanges({ section: 'movieCollections' }));
|
||||||
|
}
|
||||||
|
}, [wasOpen, isOpen, dispatch]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal isOpen={isOpen} onModalClose={handleModalClose}>
|
<Modal isOpen={isOpen} onModalClose={handleModalClose}>
|
||||||
<AddNewMovieCollectionMovieModalContent
|
<AddNewMovieCollectionMovieModalContent
|
||||||
|
|||||||
@@ -88,13 +88,10 @@ function QualityProfileSelectInput({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const handleChange = useCallback(
|
const handleChange = useCallback(
|
||||||
({ value: newValue }: EnhancedSelectInputChanged<string | number>) => {
|
({ value }: EnhancedSelectInputChanged<string | number>) => {
|
||||||
onChange({
|
onChange({ name, value });
|
||||||
name,
|
|
||||||
value: newValue === 'noChange' ? value : newValue,
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
[name, value, onChange]
|
[name, onChange]
|
||||||
);
|
);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ namespace Radarr.Api.V3.MovieFiles
|
|||||||
public List<Language> Languages { get; set; }
|
public List<Language> Languages { get; set; }
|
||||||
public QualityModel Quality { get; set; }
|
public QualityModel Quality { get; set; }
|
||||||
public List<CustomFormatResource> CustomFormats { get; set; }
|
public List<CustomFormatResource> CustomFormats { get; set; }
|
||||||
public int CustomFormatScore { get; set; }
|
public int? CustomFormatScore { get; set; }
|
||||||
public int? IndexerFlags { get; set; }
|
public int? IndexerFlags { get; set; }
|
||||||
public MediaInfoResource MediaInfo { get; set; }
|
public MediaInfoResource MediaInfo { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -10824,7 +10824,8 @@
|
|||||||
},
|
},
|
||||||
"customFormatScore": {
|
"customFormatScore": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32",
|
||||||
|
"nullable": true
|
||||||
},
|
},
|
||||||
"indexerFlags": {
|
"indexerFlags": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
|
|||||||
Reference in New Issue
Block a user