+ client: added name for client

This commit is contained in:
Ildar Kamalov
2019-03-20 17:04:32 +03:00
committed by Simon Zolin
parent 5210d214ec
commit bc0b0af06b
8 changed files with 86 additions and 8 deletions

View File

@@ -167,6 +167,17 @@ const dashboard = handleActions({
const newState = { ...state, language: payload };
return newState;
},
[actions.getClientsRequest]: state => ({ ...state, processingClients: true }),
[actions.getClientsFailure]: state => ({ ...state, processingClients: false }),
[actions.getClientsSuccess]: (state, { payload }) => {
const newState = {
...state,
clients: payload,
processingClients: false,
};
return newState;
},
}, {
processing: true,
isCoreRunning: false,
@@ -175,6 +186,7 @@ const dashboard = handleActions({
logStatusProcessing: false,
processingVersion: true,
processingFiltering: true,
processingClients: true,
upstreamDns: '',
bootstrapDns: '',
allServers: false,
@@ -184,6 +196,7 @@ const dashboard = handleActions({
dnsPort: 53,
dnsAddresses: [],
dnsVersion: '',
clients: [],
});
const queryLogs = handleActions({