mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 09:47:39 +00:00
Add warning to remove from queue dialog
This commit is contained in:
parent
ff8fc237e2
commit
0a92a3012e
3 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,4 @@
|
||||||
.message {
|
.messageRemove {
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
|
color: $dangerColor;
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,10 +69,14 @@ class RemoveQueueItemModal extends Component {
|
||||||
</ModalHeader>
|
</ModalHeader>
|
||||||
|
|
||||||
<ModalBody>
|
<ModalBody>
|
||||||
<div className={styles.message}>
|
<div>
|
||||||
Are you sure you want to remove '{sourceTitle}' from the queue?
|
Are you sure you want to remove '{sourceTitle}' from the queue?
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className={styles.messageRemove}>
|
||||||
|
Removing will remove the download and the file(s) from the download client.
|
||||||
|
</div>
|
||||||
|
|
||||||
<FormGroup>
|
<FormGroup>
|
||||||
<FormLabel>Blacklist Release</FormLabel>
|
<FormLabel>Blacklist Release</FormLabel>
|
||||||
<FormInputGroup
|
<FormInputGroup
|
||||||
|
|
|
@ -24,7 +24,7 @@ class AddNewSeriesSearchResult extends Component {
|
||||||
|
|
||||||
componentDidUpdate(prevProps) {
|
componentDidUpdate(prevProps) {
|
||||||
if (!prevProps.isExistingSeries && this.props.isExistingSeries) {
|
if (!prevProps.isExistingSeries && this.props.isExistingSeries) {
|
||||||
this.onAddSerisModalClose();
|
this.onAddSeriesModalClose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ class AddNewSeriesSearchResult extends Component {
|
||||||
this.setState({ isNewAddSeriesModalOpen: true });
|
this.setState({ isNewAddSeriesModalOpen: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
onAddSerisModalClose = () => {
|
onAddSeriesModalClose = () => {
|
||||||
this.setState({ isNewAddSeriesModalOpen: false });
|
this.setState({ isNewAddSeriesModalOpen: false });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ class AddNewSeriesSearchResult extends Component {
|
||||||
year={year}
|
year={year}
|
||||||
overview={overview}
|
overview={overview}
|
||||||
images={images}
|
images={images}
|
||||||
onModalClose={this.onAddSerisModalClose}
|
onModalClose={this.onAddSeriesModalClose}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue