🤯 Added ES index delete option in the UI

This commit is contained in:
2022-04-04 22:57:02 -07:00
parent ff47e3d590
commit 89ca89752c
6 changed files with 60 additions and 10 deletions

View File

@@ -23,6 +23,7 @@ import {
SS_SEARCH_IN_PROGRESS,
FILEOPS_STATE_RESET,
LS_IMPORT_CALL_IN_PROGRESS,
SS_SEARCH_FAILED,
} from "../constants/action-types";
const initialState = {
IMSCallInProgress: false,
@@ -41,6 +42,7 @@ const initialState = {
wantedComics: [],
librarySearchResultCount: 0,
libraryQueueResults: [],
librarySearchError: {},
};
function fileOpsReducer(state = initialState, action) {
@@ -181,13 +183,20 @@ function fileOpsReducer(state = initialState, action) {
}
case SS_SEARCH_RESULTS_FETCHED: {
console.log(action.data);
return {
...state,
librarySearchResults: action.data,
SSCallInProgress: false,
};
}
case SS_SEARCH_FAILED: {
console.log(action.data);
return {
...state,
librarySearchError: action.data,
SSCallInProgress: false,
};
}
case FILEOPS_STATE_RESET: {
return {