+ client: handle static IP while doing initial setup

This commit is contained in:
Ildar Kamalov
2020-01-30 18:26:54 +03:00
committed by Simon Zolin
parent 5c385521c4
commit cc2d953c9d
7 changed files with 119 additions and 31 deletions

View File

@@ -32,9 +32,10 @@ const install = handleActions({
[actions.checkConfigSuccess]: (state, { payload }) => {
const web = { ...state.web, ...payload.web };
const dns = { ...state.dns, ...payload.dns };
const staticIp = { ...state.staticIp, ...payload.static_ip };
const newState = {
...state, web, dns, processingCheck: false,
...state, web, dns, staticIp, processingCheck: false,
};
return newState;
},
@@ -55,6 +56,11 @@ const install = handleActions({
status: '',
can_autofix: false,
},
staticIp: {
static: '',
ip: '',
error: '',
},
interfaces: {},
});