1
0
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:
Austin Best
2020-07-25 17:59:03 -04:00
committed by Qstick
parent a2e8d1d5d6
commit c51b08e26c
24 changed files with 249 additions and 83 deletions
@@ -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
};
}
);