mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 19:50:15 -07:00
[UI Work] Settings Naming Page, Other Settings
This commit is contained in:
parent
22d9c5e666
commit
456ead09da
14 changed files with 281 additions and 393 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue