Added check for active DHCP before enable

This commit is contained in:
Ildar Kamalov 2018-12-29 18:43:17 +03:00
parent d8802a9709
commit 568784b992
8 changed files with 282 additions and 150 deletions
client/src/api

View file

@ -328,8 +328,12 @@ export default class Api {
return this.makeRequest(path, method, parameters);
}
findActiveDhcp() {
findActiveDhcp(name) {
const { path, method } = this.DHCP_FIND_ACTIVE;
return this.makeRequest(path, method);
const parameters = {
data: name,
headers: { 'Content-Type': 'text/plain' },
};
return this.makeRequest(path, method, parameters);
}
}