#40: Support for remote Windows mounts - partial
This commit is contained in:
@@ -68,10 +68,15 @@ export const saveState = () => {
|
||||
if (state.common.AppReady) {
|
||||
let currentState = {
|
||||
Release: state.relver.Release,
|
||||
RemoteMounts: state.mounts.RemoteMounts,
|
||||
Version: state.relver.Version,
|
||||
};
|
||||
|
||||
for (const provider of Constants.PROVIDER_LIST) {
|
||||
const providerList = [
|
||||
...Constants.PROVIDER_LIST,
|
||||
...state.mounts.RemoteMounts,
|
||||
];
|
||||
for (const provider of providerList) {
|
||||
currentState[provider] = state.mounts.ProviderState[provider];
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,16 @@ import * as Constants from '../../constants';
|
||||
import {createAction} from 'redux-starter-kit';
|
||||
import {getIPCRenderer} from '../../utils';
|
||||
|
||||
export const displayConfiguration = createAction('mounts/displayConfiguration');
|
||||
export const DISPLAY_CONFIGURATION = 'mounts/displayConfiguration';
|
||||
export const displayConfiguration = (provider, remote) => {
|
||||
return {
|
||||
type: DISPLAY_CONFIGURATION,
|
||||
payload: {
|
||||
provider,
|
||||
remote,
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
export const RESET_MOUNTS_STATE = 'mounts/resetMountsState';
|
||||
export const resetMountsState = () => {
|
||||
|
||||
Reference in New Issue
Block a user