mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Renamed isEnabled into Enabled for the consistency
This commit is contained in:
parent
f578b395b9
commit
ddf2da18a3
@ -39,7 +39,7 @@ function onRequest(context) {
|
|||||||
viewObject.anchor = encodeURI(JSON.stringify(anchor));
|
viewObject.anchor = encodeURI(JSON.stringify(anchor));
|
||||||
viewObject.locationHistory = stringify(device.content.locationHistory);
|
viewObject.locationHistory = stringify(device.content.locationHistory);
|
||||||
viewObject.locationEnabled = (device.content.locationHistory.length !== 0);
|
viewObject.locationEnabled = (device.content.locationHistory.length !== 0);
|
||||||
viewObject.geoServicesEnabled = devicemgtProps.serverConfig.geoLocationConfiguration.isEnabled;
|
viewObject.geoServicesEnabled = devicemgtProps.serverConfig.geoLocationConfiguration.enabled;
|
||||||
return viewObject;
|
return viewObject;
|
||||||
} else {
|
} else {
|
||||||
response.sendError(404, "Device Id " + deviceId + " of type " + deviceType + " cannot be found!");
|
response.sendError(404, "Device Id " + deviceId + " of type " + deviceType + " cannot be found!");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user