From 8a7d0bb3aa746c216fc3df47bbb07052855f9a90 Mon Sep 17 00:00:00 2001 From: Madawa Soysa Date: Wed, 11 Jan 2017 14:03:12 +0530 Subject: [PATCH] IOTS-377 : Fixing VFA icon not visible issue Fixes IOTS-377 --- .../devicemgt/app/pages/cdmf.page.policies/policies.hbs | 8 ++++---- .../devicemgt/app/pages/cdmf.page.policies/policies.js | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.policies/policies.hbs b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.policies/policies.hbs index 4f20b3f2c0..21227b5a31 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.policies/policies.hbs +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.policies/policies.hbs @@ -182,9 +182,9 @@ {{#each policyListToView}} -
- + data-url="{{@app.context}}/policy/view?id={{id}}&deviceType={{platform}}" data-id="{{id}}"> +
+
- diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.policies/policies.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.policies/policies.js index 515a002f94..d2d743a73e 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.policies/policies.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.policies/policies.js @@ -33,6 +33,11 @@ function onRequest(context) { var response = policyModule.getAllPolicies(); if (response["status"] == "success") { var policyListToView = response["content"]; + for(var index in policyListToView) { + if(policyListToView.hasOwnProperty(index)) { + policyListToView[index]["icon"] = utility.getDeviceThumb(policyListToView[index]["platform"]); + } + } page["policyListToView"] = policyListToView; var policyCount = policyListToView.length; if (policyCount == 0) {