🔧 DnD for comic book page reorganization first draft

This commit is contained in:
2021-10-04 21:22:29 -07:00
parent eb85ede5d8
commit eba51803f6
6 changed files with 78 additions and 16 deletions

View File

@@ -1,3 +1,4 @@
import { LOCATION_CHANGE } from "connected-react-router";
import {
RMQ_SOCKET_CONNECTED,
RMQ_SOCKET_DISCONNECTED,
@@ -18,6 +19,7 @@ import {
} from "../constants/action-types";
const initialState = {
IMSCallInProgress: false,
comicBookExtractionInProgress: false,
comicBookMetadata: [],
comicVolumeGroups: [],
isSocketConnected: false,
@@ -98,16 +100,22 @@ function fileOpsReducer(state = initialState, action) {
case IMS_COMIC_BOOK_ARCHIVE_EXTRACTION_CALL_IN_PROGRESS: {
return {
...state,
IMSCallInProgress: true,
comicBookExtractionInProgress: true,
};
}
case IMS_COMIC_BOOK_ARCHIVE_EXTRACTION_SUCCESS: {
return {
...state,
extractedComicBookArchive: action.extractedComicBookArchive,
IMSCallInProgress: false,
comicBookExtractionInProgress: false,
};
}
case LOCATION_CHANGE: {
return {
...state,
extractedComicBookArchive: [],
}
}
default:
return state;
}