Single mount detection
This commit is contained in:
@@ -17,7 +17,8 @@ export const addRemoteMount = (hostNameOrIp, port, token) => {
|
||||
|
||||
ipcRenderer.once(Constants.IPC_Set_Config_Values_Reply, (_, arg) => {
|
||||
if (arg.data.Success) {
|
||||
ipcRenderer.send(Constants.IPC_Detect_Mounts, {
|
||||
ipcRenderer.send(Constants.IPC_Detect_Mount, {
|
||||
Provider: provider,
|
||||
RemoteMounts: getState().mounts.RemoteMounts,
|
||||
Version: getState().relver.InstalledVersion,
|
||||
});
|
||||
@@ -99,7 +100,17 @@ export const setAllowMount = (provider, allow) => {
|
||||
};
|
||||
};
|
||||
|
||||
export const setAutoMountProcessed = createAction('mounts/setAutoMountProcessed');
|
||||
export const SET_AUTO_MOUNT_PROCESSED = 'mounts/setAutoMountProcessed';
|
||||
export const setAutoMountProcessed = (provider, processed) => {
|
||||
return {
|
||||
type: SET_AUTO_MOUNT_PROCESSED,
|
||||
payload: {
|
||||
provider,
|
||||
processed
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
export const setBusy = createAction('mounts/setBusy');
|
||||
|
||||
export const SET_MOUNT_STATE = 'mounts/setMountState';
|
||||
|
||||
Reference in New Issue
Block a user