mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-22 22:15:17 -04:00
Fixed: Address issues with the status being wrong color on the index and movie details (not tracking anything queued/downloading)
Fixed: Updated fetchQueueDetails() to not pass movie ids since the store doesn't use them anyways New: Added text to index poster progress bar showing status #4525 #4526 #4982
This commit is contained in:
@@ -32,11 +32,13 @@ function createMapStateToProps() {
|
||||
createMovieQualityProfileSelector(),
|
||||
selectShowSearchAction(),
|
||||
createExecutingCommandsSelector(),
|
||||
(state) => state.queue.details.items,
|
||||
(
|
||||
movie,
|
||||
qualityProfile,
|
||||
showSearchAction,
|
||||
executingCommands
|
||||
executingCommands,
|
||||
queueItems
|
||||
) => {
|
||||
|
||||
// If a movie is deleted this selector may fire before the parent
|
||||
@@ -62,12 +64,25 @@ function createMapStateToProps() {
|
||||
);
|
||||
});
|
||||
|
||||
let queueStatus = null;
|
||||
let queueState = null;
|
||||
|
||||
for (const q in queueItems) {
|
||||
if (queueItems[q].movieId === movie.id) {
|
||||
queueStatus = queueItems[q].status;
|
||||
queueState = queueItems[q].trackedDownloadState;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
...movie,
|
||||
qualityProfile,
|
||||
showSearchAction,
|
||||
isRefreshingMovie,
|
||||
isSearchingMovie
|
||||
isSearchingMovie,
|
||||
queueStatus,
|
||||
queueState
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user