🔧 Wired up jobStatistics call

This commit is contained in:
2023-08-28 23:57:01 -04:00
parent 75777d32dd
commit 80b7113ed5
5 changed files with 485 additions and 434 deletions

View File

@@ -33,7 +33,7 @@ import {
LS_IMPORT_QUEUE_DRAINED,
LS_SET_QUEUE_STATUS,
RESTORE_JOB_COUNTS_AFTER_SESSION_RESTORATION,
IMPORT_JOB_RESULTS_RETRIEVED,
LS_IMPORT_JOB_STATISTICS_FETCHED,
} from "../constants/action-types";
import { removeLeadingPeriod } from "../shared/utils/formatting.utils";
import { LIBRARY_SERVICE_HOST } from "../constants/endpoints";
@@ -197,13 +197,19 @@ function fileOpsReducer(state = initialState, action) {
}
case LS_SET_QUEUE_STATUS: {
console.log(action);
return {
...state,
LSQueueImportStatus: action.data.queueStatus,
};
}
case LS_IMPORT_JOB_STATISTICS_FETCHED: {
return {
...state,
importJobStatistics: action.data,
};
}
case COMICBOOK_EXTRACTION_SUCCESS: {
const comicBookPages: string[] = [];
map(action.result.files, (page) => {
@@ -232,11 +238,7 @@ function fileOpsReducer(state = initialState, action) {
};
}
}
case IMPORT_JOB_RESULTS_RETRIEVED: {
return {
...state,
};
}
case LS_COMIC_ADDED: {
return {
...state,