mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Fixes to the https://github.com/wso2/product-iots/issues/1251
This commit is contained in:
parent
c2089bc5dd
commit
8953cea830
@ -67,7 +67,11 @@
|
|||||||
<div id="map-error" class="message message-warning">
|
<div id="map-error" class="message message-warning">
|
||||||
<h4 class="remove-margin">
|
<h4 class="remove-margin">
|
||||||
<i class="icon fw fw-warning"></i>
|
<i class="icon fw fw-warning"></i>
|
||||||
Device location information is not available. Please check whether Geo Location Based Services is Enabled.
|
{{#if geoServicesEnabled}}
|
||||||
|
Device location information is not available.
|
||||||
|
{{else}}
|
||||||
|
Geo Location Based Services is not enabled.
|
||||||
|
{{/if}}
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<p class="add-padding-5x"></p>
|
<p class="add-padding-5x"></p>
|
||||||
|
|||||||
@ -38,6 +38,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;
|
||||||
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