mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-23 22:45:06 -04:00
Show Indexer Status on Indexer Table
This commit is contained in:
@@ -6,6 +6,8 @@ import * as commandNames from 'Commands/commandNames';
|
||||
import { executeCommand } from 'Store/Actions/commandActions';
|
||||
import createExecutingCommandsSelector from 'Store/Selectors/createExecutingCommandsSelector';
|
||||
import createIndexerSelector from 'Store/Selectors/createIndexerSelector';
|
||||
import createIndexerStatusSelector from 'Store/Selectors/createIndexerStatusSelector';
|
||||
import createUISettingsSelector from 'Store/Selectors/createUISettingsSelector';
|
||||
|
||||
function selectShowSearchAction() {
|
||||
return createSelector(
|
||||
@@ -19,12 +21,16 @@ function selectShowSearchAction() {
|
||||
function createMapStateToProps() {
|
||||
return createSelector(
|
||||
createIndexerSelector(),
|
||||
createIndexerStatusSelector(),
|
||||
selectShowSearchAction(),
|
||||
createExecutingCommandsSelector(),
|
||||
createUISettingsSelector(),
|
||||
(
|
||||
movie,
|
||||
status,
|
||||
showSearchAction,
|
||||
executingCommands
|
||||
executingCommands,
|
||||
uiSettings
|
||||
) => {
|
||||
|
||||
// If a movie is deleted this selector may fire before the parent
|
||||
@@ -32,6 +38,8 @@ function createMapStateToProps() {
|
||||
// we want to return early here and again in the render function to avoid
|
||||
// trying to show a movie that has no information available.
|
||||
|
||||
console.log(status);
|
||||
|
||||
if (!movie) {
|
||||
return {};
|
||||
}
|
||||
@@ -52,9 +60,12 @@ function createMapStateToProps() {
|
||||
|
||||
return {
|
||||
...movie,
|
||||
status,
|
||||
showSearchAction,
|
||||
isRefreshingMovie,
|
||||
isSearchingMovie
|
||||
isSearchingMovie,
|
||||
longDateFormat: uiSettings.longDateFormat,
|
||||
timeFormat: uiSettings.timeFormat
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user