+ client: handle static IP while doing initial setup
This commit is contained in:
committed by
Simon Zolin
parent
5c385521c4
commit
cc2d953c9d
@@ -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: {},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user