Passing deviceId and deviceType into view

revert-dabc3590
Dunith Dhanushka 8 years ago committed by GitHub
parent 33e57efc3d
commit a097482b91

@ -213,7 +213,7 @@ function onRequest(context) {
deviceViewData["autoCompleteParams"] = autoCompleteParams; deviceViewData["autoCompleteParams"] = autoCompleteParams;
deviceViewData["portalUrl"] = devicemgtProps['portalURL']; deviceViewData["portalUrl"] = devicemgtProps['portalURL'];
var anchor = { "device" : { "id" : deviceId, "type" : deviceType}}; deviceViewData["deviceId"] = deviceId;
deviceViewData["anchor"] = JSON.stringify(anchor); deviceViewData["deviceType"] = deviceType;
return deviceViewData; return deviceViewData;
} }

Loading…
Cancel
Save