Browse Source

Move log flag UI to network

pull/32/head
Kristijan Mitrovic 4 years ago
parent
commit
676be58b17
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/_services/network.service.js

+ 3
- 3
src/_services/network.service.js View File

@@ -95,15 +95,15 @@ function getNetworkBackups(userId, networkId, messages, errors) {
}

function getLogFlag(messages, errors) {
return fetch(`${config.apiUrl}/me/nodes/logs/status`, util.getWithAuth())
return fetch(`${config.apiUrl}/me/networks/logs/status`, util.getWithAuth())
.then(util.handleCrudResponse(messages, errors));
}
function disableLog(messages, errors) {
return fetch(`${config.apiUrl}/me/nodes/logs/stop`, util.postWithAuth())
return fetch(`${config.apiUrl}/me/networks/logs/stop`, util.postWithAuth())
.then(util.handlePlaintextResponse(messages, errors));
}
function enableLog(disableInDays, messages, errors) {
const ttlDaysParam = disableInDays ? '?ttlDays=' + disableInDays : '';
return fetch(`${config.apiUrl}/me/nodes/logs/start` + ttlDaysParam, util.postWithAuth())
return fetch(`${config.apiUrl}/me/networks/logs/start` + ttlDaysParam, util.postWithAuth())
.then(util.handlePlaintextResponse(messages, errors));
}

Loading…
Cancel
Save