Support S3 delete
This commit is contained in:
@@ -5,7 +5,7 @@ import {
|
||||
addRemoteMount2,
|
||||
addS3Mount2,
|
||||
DISPLAY_CONFIGURATION,
|
||||
removeRemoteMount3,
|
||||
removeMount3,
|
||||
RESET_MOUNTS_STATE,
|
||||
SET_ALLOW_MOUNT,
|
||||
SET_AUTO_MOUNT_PROCESSED,
|
||||
@@ -126,7 +126,7 @@ export const createMountReducer = state => {
|
||||
DisplayS3Configuration: action.payload.s3,
|
||||
};
|
||||
},
|
||||
[removeRemoteMount3]: (state, action) => {
|
||||
[removeMount3]: (state, action) => {
|
||||
let mountState = {...state.MountState};
|
||||
delete mountState[action.payload];
|
||||
|
||||
@@ -138,12 +138,15 @@ export const createMountReducer = state => {
|
||||
|
||||
const remoteMounts =
|
||||
state.RemoteMounts.filter(i => i !== action.payload);
|
||||
const s3Mounts =
|
||||
state.S3Mounts.filter(i => i !== action.payload);
|
||||
return {
|
||||
...state,
|
||||
AutoMountProcessed: autoMountProcessed,
|
||||
MountState: mountState,
|
||||
ProviderState: providerState,
|
||||
RemoteMounts: remoteMounts,
|
||||
S3Mounts: s3Mounts,
|
||||
};
|
||||
},
|
||||
[RESET_MOUNTS_STATE]: (state, action) => {
|
||||
|
||||
Reference in New Issue
Block a user