mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
New: Show relative file name when selecting episode in Manual Import
Closes #3197
This commit is contained in:
parent
ec74e9bce0
commit
c86309cfc0
@ -0,0 +1,32 @@
|
||||
.footer {
|
||||
composes: modalFooter from "~Components/Modal/ModalFooter.css";
|
||||
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.path {
|
||||
margin-right: 20px;
|
||||
color: $dimColor;
|
||||
}
|
||||
|
||||
.buttons {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: $breakpointSmall) {
|
||||
.footer {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.path {
|
||||
margin-right: 0;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.buttons {
|
||||
justify-content: space-between;
|
||||
flex-grow: 1;
|
||||
}
|
||||
}
|
@ -14,6 +14,7 @@ import ModalFooter from 'Components/Modal/ModalFooter';
|
||||
import Table from 'Components/Table/Table';
|
||||
import TableBody from 'Components/Table/TableBody';
|
||||
import SelectEpisodeRow from './SelectEpisodeRow';
|
||||
import styles from './SelectEpisodeModalContent.css';
|
||||
|
||||
const columns = [
|
||||
{
|
||||
@ -83,6 +84,7 @@ class SelectEpisodeModalContent extends Component {
|
||||
isPopulated,
|
||||
error,
|
||||
items,
|
||||
relativePath,
|
||||
sortKey,
|
||||
sortDirection,
|
||||
onSortPress,
|
||||
@ -100,7 +102,10 @@ class SelectEpisodeModalContent extends Component {
|
||||
return (
|
||||
<ModalContent onModalClose={onModalClose}>
|
||||
<ModalHeader>
|
||||
Manual Import - Select Episode(s)
|
||||
<div className={styles.header}>
|
||||
Manual Import - Select Episode(s)
|
||||
</div>
|
||||
|
||||
</ModalHeader>
|
||||
|
||||
<ModalBody>
|
||||
@ -152,17 +157,21 @@ class SelectEpisodeModalContent extends Component {
|
||||
}
|
||||
</ModalBody>
|
||||
|
||||
<ModalFooter>
|
||||
<Button onPress={onModalClose}>
|
||||
Cancel
|
||||
</Button>
|
||||
<ModalFooter className={styles.footer}>
|
||||
<div className={styles.path}>{relativePath}</div>
|
||||
|
||||
<Button
|
||||
kind={kinds.SUCCESS}
|
||||
onPress={this.onEpisodesSelect}
|
||||
>
|
||||
<div className={styles.buttons}>
|
||||
<Button onPress={onModalClose}>
|
||||
Cancel
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
kind={kinds.SUCCESS}
|
||||
onPress={this.onEpisodesSelect}
|
||||
>
|
||||
Select Episodes
|
||||
</Button>
|
||||
</Button>
|
||||
</div>
|
||||
</ModalFooter>
|
||||
</ModalContent>
|
||||
);
|
||||
@ -174,6 +183,7 @@ SelectEpisodeModalContent.propTypes = {
|
||||
isPopulated: PropTypes.bool.isRequired,
|
||||
error: PropTypes.object,
|
||||
items: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
relativePath: PropTypes.string.isRequired,
|
||||
sortKey: PropTypes.string,
|
||||
sortDirection: PropTypes.string,
|
||||
onSortPress: PropTypes.func.isRequired,
|
||||
|
@ -340,6 +340,7 @@ class InteractiveImportRow extends Component {
|
||||
id={id}
|
||||
seriesId={series && series.id}
|
||||
seasonNumber={seasonNumber}
|
||||
relativePath={relativePath}
|
||||
onModalClose={this.onSelectEpisodeModalClose}
|
||||
/>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user