* client: check initial access settings
This commit is contained in:
parent
54f6710b8f
commit
f7d88f6976
|
@ -14,9 +14,9 @@ const access = handleActions(
|
||||||
} = payload;
|
} = payload;
|
||||||
const newState = {
|
const newState = {
|
||||||
...state,
|
...state,
|
||||||
allowed_clients: allowed_clients.join('\n'),
|
allowed_clients: (allowed_clients && allowed_clients.join('\n')) || '',
|
||||||
disallowed_clients: disallowed_clients.join('\n'),
|
disallowed_clients: (disallowed_clients && disallowed_clients.join('\n')) || '',
|
||||||
blocked_hosts: blocked_hosts.join('\n'),
|
blocked_hosts: (blocked_hosts && blocked_hosts.join('\n')) || '',
|
||||||
processing: false,
|
processing: false,
|
||||||
};
|
};
|
||||||
return newState;
|
return newState;
|
||||||
|
@ -35,9 +35,9 @@ const access = handleActions(
|
||||||
{
|
{
|
||||||
processing: true,
|
processing: true,
|
||||||
processingSet: false,
|
processingSet: false,
|
||||||
allowed_clients: null,
|
allowed_clients: '',
|
||||||
disallowed_clients: null,
|
disallowed_clients: '',
|
||||||
blocked_hosts: null,
|
blocked_hosts: '',
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue