mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-22 22:14:44 -04:00
Fixed: Don't allow Release Change if AnyRelease and Files Present
This commit is contained in:
@@ -34,6 +34,7 @@ class EditAlbumModalContent extends Component {
|
|||||||
title,
|
title,
|
||||||
artistName,
|
artistName,
|
||||||
albumType,
|
albumType,
|
||||||
|
statistics,
|
||||||
item,
|
item,
|
||||||
isSaving,
|
isSaving,
|
||||||
onInputChange,
|
onInputChange,
|
||||||
@@ -88,6 +89,7 @@ class EditAlbumModalContent extends Component {
|
|||||||
type={inputTypes.ALBUM_RELEASE_SELECT}
|
type={inputTypes.ALBUM_RELEASE_SELECT}
|
||||||
name="releases"
|
name="releases"
|
||||||
helpText="Change release for this album"
|
helpText="Change release for this album"
|
||||||
|
isDisabled={anyReleaseOk.value && statistics.trackFileCount > 0}
|
||||||
albumReleases={releases}
|
albumReleases={releases}
|
||||||
onChange={onInputChange}
|
onChange={onInputChange}
|
||||||
/>
|
/>
|
||||||
@@ -120,6 +122,7 @@ EditAlbumModalContent.propTypes = {
|
|||||||
title: PropTypes.string.isRequired,
|
title: PropTypes.string.isRequired,
|
||||||
artistName: PropTypes.string.isRequired,
|
artistName: PropTypes.string.isRequired,
|
||||||
albumType: PropTypes.string.isRequired,
|
albumType: PropTypes.string.isRequired,
|
||||||
|
statistics: PropTypes.object.isRequired,
|
||||||
item: PropTypes.object.isRequired,
|
item: PropTypes.object.isRequired,
|
||||||
isSaving: PropTypes.bool.isRequired,
|
isSaving: PropTypes.bool.isRequired,
|
||||||
onInputChange: PropTypes.func.isRequired,
|
onInputChange: PropTypes.func.isRequired,
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ function createMapStateToProps() {
|
|||||||
title: album.title,
|
title: album.title,
|
||||||
artistName: artist.artistName,
|
artistName: artist.artistName,
|
||||||
albumType: album.albumType,
|
albumType: album.albumType,
|
||||||
|
statistics: album.statistics,
|
||||||
isSaving,
|
isSaving,
|
||||||
saveError,
|
saveError,
|
||||||
item: settings.settings,
|
item: settings.settings,
|
||||||
|
|||||||
Reference in New Issue
Block a user