From f1c054ae6294bec161ef52f1c609d6612bd651f3 Mon Sep 17 00:00:00 2001 From: kamidu Date: Thu, 22 Jun 2017 20:51:42 +0530 Subject: [PATCH] fixing the baclisting application view issue in policy view --- .../public/js/operation-mod.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.operation-mod/public/js/operation-mod.js b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.operation-mod/public/js/operation-mod.js index a4272f442..658312ff3 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.operation-mod/public/js/operation-mod.js +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.operation-mod/public/js/operation-mod.js @@ -706,6 +706,17 @@ var androidOperationModule = function () { } } } + + // only for app whitelisting and black listing + if (operationCode == "APP-RESTRICTION" && key == "restrictedApplications") { + var i; + for (i = 0; i < uiPayload.restrictedApplications.length; ++i) { + $("#restrictedapplication-list").append('' + + ''+ (i+1) +' ' + uiPayload.restrictedApplications[i].appName + + ' ' + uiPayload.restrictedApplications[i].packageName + ''); + } + + } } ); };