mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-17 15:02:34 +02:00
Fixed: Refresh from IndexItem and MovieDetails doesn’t refresh single (#4584)
* Fixed: Refresh from MovieDetails doesn’t refresh single * Fixed: Refresh from index Item should be sing * Fixed: Detection on running refresh on MovieDetails
This commit is contained in:
parent
113f5a9bfe
commit
f8f58c2eda
@ -119,7 +119,7 @@ function createMapStateToProps() {
|
|||||||
|
|
||||||
const previousMovie = sortedMovies[movieIndex - 1] || _.last(sortedMovies);
|
const previousMovie = sortedMovies[movieIndex - 1] || _.last(sortedMovies);
|
||||||
const nextMovie = sortedMovies[movieIndex + 1] || _.first(sortedMovies);
|
const nextMovie = sortedMovies[movieIndex + 1] || _.first(sortedMovies);
|
||||||
const isMovieRefreshing = isCommandExecuting(findCommand(commands, { name: commandNames.REFRESH_MOVIE, movieId: movie.id }));
|
const isMovieRefreshing = isCommandExecuting(findCommand(commands, { name: commandNames.REFRESH_MOVIE, movieIds: [movie.id] }));
|
||||||
const movieRefreshingCommand = findCommand(commands, { name: commandNames.REFRESH_MOVIE });
|
const movieRefreshingCommand = findCommand(commands, { name: commandNames.REFRESH_MOVIE });
|
||||||
const allMoviesRefreshing = (
|
const allMoviesRefreshing = (
|
||||||
isCommandExecuting(movieRefreshingCommand) &&
|
isCommandExecuting(movieRefreshingCommand) &&
|
||||||
@ -290,7 +290,7 @@ class MovieDetailsConnector extends Component {
|
|||||||
onRefreshPress = () => {
|
onRefreshPress = () => {
|
||||||
this.props.dispatchExecuteCommand({
|
this.props.dispatchExecuteCommand({
|
||||||
name: commandNames.REFRESH_MOVIE,
|
name: commandNames.REFRESH_MOVIE,
|
||||||
movieId: this.props.id
|
movieIds: [this.props.id]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,14 +51,14 @@ function createMapStateToProps() {
|
|||||||
const isRefreshingMovie = executingCommands.some((command) => {
|
const isRefreshingMovie = executingCommands.some((command) => {
|
||||||
return (
|
return (
|
||||||
command.name === commandNames.REFRESH_MOVIE &&
|
command.name === commandNames.REFRESH_MOVIE &&
|
||||||
command.body.movieId === movie.id
|
command.body.movieIds.includes(movie.id)
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
const isSearchingMovie = executingCommands.some((command) => {
|
const isSearchingMovie = executingCommands.some((command) => {
|
||||||
return (
|
return (
|
||||||
command.name === commandNames.MOVIE_SEARCH &&
|
command.name === commandNames.MOVIE_SEARCH &&
|
||||||
command.body.movieId === movie.id
|
command.body.movieIds.includes(movie.id)
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ class MovieIndexItemConnector extends Component {
|
|||||||
onRefreshMoviePress = () => {
|
onRefreshMoviePress = () => {
|
||||||
this.props.dispatchExecuteCommand({
|
this.props.dispatchExecuteCommand({
|
||||||
name: commandNames.REFRESH_MOVIE,
|
name: commandNames.REFRESH_MOVIE,
|
||||||
movieId: this.props.id
|
movieIds: [this.props.id]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user