1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-26 22:46:53 -04:00

New: Closing Move Movie modal without selecting will cancel save

Closes #8225

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
Qstick
2023-04-30 19:13:36 -05:00
parent 80d7bdb834
commit a41999f9c2
3 changed files with 14 additions and 2 deletions
@@ -31,6 +31,10 @@ class EditMovieModalContent extends Component {
//
// Listeners
onCancelPress = () => {
this.setState({ isConfirmMoveModalOpen: false });
};
onSavePress = () => {
const {
isPathChanging,
@@ -171,6 +175,7 @@ class EditMovieModalContent extends Component {
originalPath={originalPath}
destinationPath={path.value}
isOpen={this.state.isConfirmMoveModalOpen}
onModalClose={this.onCancelPress}
onSavePress={this.onSavePress}
onMoveMoviePress={this.onMoveMoviePress}
/>