Fixed: OS specific paths for import artist tip

pull/504/head
Qstick 6 years ago
parent 4712f7f947
commit eedaa2a7b8

@ -68,6 +68,7 @@ class ImportArtistSelectFolder extends Component {
render() { render() {
const { const {
isWindows,
isFetching, isFetching,
isPopulated, isPopulated,
error, error,
@ -98,7 +99,7 @@ class ImportArtistSelectFolder extends Component {
Some tips to ensure the import goes smoothly: Some tips to ensure the import goes smoothly:
<ul> <ul>
<li className={styles.tip}> <li className={styles.tip}>
Point Lidarr to the folder containing all of your music not a specific artist. eg. <span className={styles.code}>"\music\"</span> and not <span className={styles.code}>"\music\alien ant farm\"</span> Point Lidarr to the folder containing all of your music not a specific one. eg. <span className={styles.code}>"{isWindows ? 'C:\\music' : '/music'}"</span> and not <span className={styles.code}>"{isWindows ? 'C:\\music\\sublime' : '/music/sublime'}"</span>
</li> </li>
</ul> </ul>
</div> </div>
@ -172,6 +173,7 @@ class ImportArtistSelectFolder extends Component {
} }
ImportArtistSelectFolder.propTypes = { ImportArtistSelectFolder.propTypes = {
isWindows: PropTypes.bool.isRequired,
isFetching: PropTypes.bool.isRequired, isFetching: PropTypes.bool.isRequired,
isPopulated: PropTypes.bool.isRequired, isPopulated: PropTypes.bool.isRequired,
error: PropTypes.object, error: PropTypes.object,

@ -4,14 +4,19 @@ import React, { Component } from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { createSelector } from 'reselect'; import { createSelector } from 'reselect';
import { push } from 'react-router-redux'; import { push } from 'react-router-redux';
import createSystemStatusSelector from 'Store/Selectors/createSystemStatusSelector';
import { fetchRootFolders, addRootFolder, deleteRootFolder } from 'Store/Actions/rootFolderActions'; import { fetchRootFolders, addRootFolder, deleteRootFolder } from 'Store/Actions/rootFolderActions';
import ImportArtistSelectFolder from './ImportArtistSelectFolder'; import ImportArtistSelectFolder from './ImportArtistSelectFolder';
function createMapStateToProps() { function createMapStateToProps() {
return createSelector( return createSelector(
(state) => state.rootFolders, (state) => state.rootFolders,
(rootFolders) => { createSystemStatusSelector(),
return rootFolders; (rootFolders, systemStatus) => {
return {
...rootFolders,
isWindows: systemStatus.isWindows
};
} }
); );
} }

Loading…
Cancel
Save