diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/business-controllers/policy.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/business-controllers/policy.js index c1be205a634..e36069f8025 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/business-controllers/policy.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/business-controllers/policy.js @@ -223,7 +223,13 @@ policyModule = function () { appObjectToView = {}; appObjectToView["appName"] = appObjectFromRestEndpoint["name"]; appObjectToView["appId"] = appObjectFromRestEndpoint["id"]; - appObjectToView["packageName"] = appObjectFromRestEndpoint["appmeta"]["package"]; + if ("webapp" === appObjectFromRestEndpoint["platform"]) { + appObjectToView["packageName"] = appObjectFromRestEndpoint["appmeta"]["weburl"]; + appObjectToView["type"] = "Web Clip" + } else { + appObjectToView["packageName"] = appObjectFromRestEndpoint["appmeta"]["package"]; + appObjectToView["type"] = "Mobile App" + } appObjectToView["version"] = appObjectFromRestEndpoint["version"]; appObjectToView["platform"] = appObjectFromRestEndpoint["platform"]; storeApps.push(appObjectToView); diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.policy.create/public/js/policy-create.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.policy.create/public/js/policy-create.js index 8486e150317..ca52864f3f5 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.policy.create/public/js/policy-create.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.policy.create/public/js/policy-create.js @@ -202,7 +202,7 @@ function getStoreApps(storeApps, deviceType) { var selectedApps = []; var i; for (i=0; i