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["portalUrl"] = devicemgtProps['portalURL'];
var anchor = { "device" : { "id" : deviceId, "type" : deviceType}};
deviceViewData["anchor"] = JSON.stringify(anchor);
deviceViewData["deviceId"] = deviceId;
deviceViewData["deviceType"] = deviceType;
return deviceViewData;
}

Loading…
Cancel
Save