* client: check initial access settings

This commit is contained in:
Ildar Kamalov 2019-06-03 16:39:02 +03:00
parent 54f6710b8f
commit f7d88f6976
1 changed files with 6 additions and 6 deletions

View File

@ -14,9 +14,9 @@ const access = handleActions(
} = payload;
const newState = {
...state,
allowed_clients: allowed_clients.join('\n'),
disallowed_clients: disallowed_clients.join('\n'),
blocked_hosts: blocked_hosts.join('\n'),
allowed_clients: (allowed_clients && allowed_clients.join('\n')) || '',
disallowed_clients: (disallowed_clients && disallowed_clients.join('\n')) || '',
blocked_hosts: (blocked_hosts && blocked_hosts.join('\n')) || '',
processing: false,
};
return newState;
@ -35,9 +35,9 @@ const access = handleActions(
{
processing: true,
processingSet: false,
allowed_clients: null,
disallowed_clients: null,
blocked_hosts: null,
allowed_clients: '',
disallowed_clients: '',
blocked_hosts: '',
},
);