|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
import { createAction } from 'redux-actions';
|
|
|
|
|
import { sortDirections } from 'Helpers/Props';
|
|
|
|
|
import createBulkEditItemHandler from 'Store/Actions/Creators/createBulkEditItemHandler';
|
|
|
|
|
import createBulkRemoveItemHandler from 'Store/Actions/Creators/createBulkRemoveItemHandler';
|
|
|
|
|
import createFetchHandler from 'Store/Actions/Creators/createFetchHandler';
|
|
|
|
@ -7,6 +8,7 @@ import createRemoveItemHandler from 'Store/Actions/Creators/createRemoveItemHand
|
|
|
|
|
import createSaveProviderHandler, { createCancelSaveProviderHandler } from 'Store/Actions/Creators/createSaveProviderHandler';
|
|
|
|
|
import createTestAllProvidersHandler from 'Store/Actions/Creators/createTestAllProvidersHandler';
|
|
|
|
|
import createTestProviderHandler, { createCancelTestProviderHandler } from 'Store/Actions/Creators/createTestProviderHandler';
|
|
|
|
|
import createSetClientSideCollectionSortReducer from 'Store/Actions/Creators/Reducers/createSetClientSideCollectionSortReducer';
|
|
|
|
|
import createSetProviderFieldValueReducer from 'Store/Actions/Creators/Reducers/createSetProviderFieldValueReducer';
|
|
|
|
|
import createSetSettingValueReducer from 'Store/Actions/Creators/Reducers/createSetSettingValueReducer';
|
|
|
|
|
import { createThunk } from 'Store/thunks';
|
|
|
|
@ -30,9 +32,10 @@ export const CANCEL_SAVE_APPLICATION = 'settings/applications/cancelSaveApplicat
|
|
|
|
|
export const DELETE_APPLICATION = 'settings/applications/deleteApplication';
|
|
|
|
|
export const TEST_APPLICATION = 'settings/applications/testApplication';
|
|
|
|
|
export const CANCEL_TEST_APPLICATION = 'settings/applications/cancelTestApplication';
|
|
|
|
|
export const TEST_ALL_APPLICATIONS = 'indexers/testAllApplications';
|
|
|
|
|
export const TEST_ALL_APPLICATIONS = 'settings/applications/testAllApplications';
|
|
|
|
|
export const BULK_EDIT_APPLICATIONS = 'settings/applications/bulkEditApplications';
|
|
|
|
|
export const BULK_DELETE_APPLICATIONS = 'settings/applications/bulkDeleteApplications';
|
|
|
|
|
export const SET_MANAGE_APPLICATIONS_SORT = 'settings/applications/setManageApplicationsSort';
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Action Creators
|
|
|
|
@ -49,6 +52,7 @@ export const cancelTestApplication = createThunk(CANCEL_TEST_APPLICATION);
|
|
|
|
|
export const testAllApplications = createThunk(TEST_ALL_APPLICATIONS);
|
|
|
|
|
export const bulkEditApplications = createThunk(BULK_EDIT_APPLICATIONS);
|
|
|
|
|
export const bulkDeleteApplications = createThunk(BULK_DELETE_APPLICATIONS);
|
|
|
|
|
export const setManageApplicationsSort = createAction(SET_MANAGE_APPLICATIONS_SORT);
|
|
|
|
|
|
|
|
|
|
export const setApplicationValue = createAction(SET_APPLICATION_VALUE, (payload) => {
|
|
|
|
|
return {
|
|
|
|
@ -88,7 +92,9 @@ export default {
|
|
|
|
|
isTesting: false,
|
|
|
|
|
isTestingAll: false,
|
|
|
|
|
items: [],
|
|
|
|
|
pendingChanges: {}
|
|
|
|
|
pendingChanges: {},
|
|
|
|
|
sortKey: 'name',
|
|
|
|
|
sortDirection: sortDirections.DESCENDING
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
@ -121,7 +127,10 @@ export default {
|
|
|
|
|
|
|
|
|
|
return selectedSchema;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
[SET_MANAGE_APPLICATIONS_SORT]: createSetClientSideCollectionSortReducer(section)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|