mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
This commit is contained in:
parent
764b119ae5
commit
86029752f8
@ -279,10 +279,12 @@ var getProviderData = function (timeFrom, timeTo) {
|
|||||||
var serviceUrl = '/api/device-mgt/v1.0/geo-services/stats/' + deviceType + '/' + deviceId + '?from=' + timeFrom + '&to=' + timeTo;
|
var serviceUrl = '/api/device-mgt/v1.0/geo-services/stats/' + deviceType + '/' + deviceId + '?from=' + timeFrom + '&to=' + timeTo;
|
||||||
invokerUtil.get(serviceUrl,
|
invokerUtil.get(serviceUrl,
|
||||||
function (data) {
|
function (data) {
|
||||||
if(data === ""){showCurrentLocation(tableData);}
|
if (data === "") {
|
||||||
|
showCurrentLocation(tableData);
|
||||||
|
}
|
||||||
tableData = JSON.parse(data);
|
tableData = JSON.parse(data);
|
||||||
if (tableData.length === 0) {
|
if (tableData.length === 0) {
|
||||||
showCurrentLocation(tableData);
|
showCurrentLocation(tableData);
|
||||||
}
|
}
|
||||||
}, function (message) {
|
}, function (message) {
|
||||||
showCurrentLocation(tableData);
|
showCurrentLocation(tableData);
|
||||||
|
|||||||
@ -113,8 +113,7 @@
|
|||||||
conf: appConfigurations
|
conf: appConfigurations
|
||||||
},
|
},
|
||||||
uri: errorPage.definition[constants.PAGE_DEFINITION_URI],
|
uri: errorPage.definition[constants.PAGE_DEFINITION_URI],
|
||||||
uriParams: {},
|
uriParams: {}
|
||||||
user: utils.getCurrentUser()
|
|
||||||
};
|
};
|
||||||
var templateContext = {status: status, message: message};
|
var templateContext = {status: status, message: message};
|
||||||
var renderer = require("/lib/dynamic-files-renderer.js").renderer;
|
var renderer = require("/lib/dynamic-files-renderer.js").renderer;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user