mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
[UI Work] Settings Naming Page, Other Settings
This commit is contained in:
@@ -74,7 +74,7 @@ class OrganizePreviewModalContent extends Component {
|
||||
isPopulated,
|
||||
error,
|
||||
items,
|
||||
renameEpisodes,
|
||||
renameTracks,
|
||||
episodeFormat,
|
||||
path,
|
||||
onModalClose
|
||||
@@ -109,7 +109,7 @@ class OrganizePreviewModalContent extends Component {
|
||||
!isFetching && isPopulated && !items.length &&
|
||||
<div>
|
||||
{
|
||||
renameEpisodes ?
|
||||
renameTracks ?
|
||||
<div>Success! My work is done, no files to rename.</div> :
|
||||
<div>Renaming is disabled, nothing to rename</div>
|
||||
}
|
||||
@@ -191,7 +191,7 @@ OrganizePreviewModalContent.propTypes = {
|
||||
error: PropTypes.object,
|
||||
items: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
path: PropTypes.string.isRequired,
|
||||
renameEpisodes: PropTypes.bool,
|
||||
renameTracks: PropTypes.bool,
|
||||
episodeFormat: PropTypes.string,
|
||||
onOrganizePress: PropTypes.func.isRequired,
|
||||
onModalClose: PropTypes.func.isRequired
|
||||
|
||||
@@ -19,7 +19,7 @@ function createMapStateToProps() {
|
||||
props.isFetching = organizePreview.isFetching || naming.isFetching;
|
||||
props.isPopulated = organizePreview.isPopulated && naming.isPopulated;
|
||||
props.error = organizePreview.error || naming.error;
|
||||
props.renameEpisodes = naming.item.renameEpisodes;
|
||||
props.renameTracks = naming.item.renameTracks;
|
||||
props.episodeFormat = naming.item[`${series.seriesType}EpisodeFormat`];
|
||||
props.path = series.path;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user