From 00e9bcb87ac445eff6fc675f2270a2856bf80088 Mon Sep 17 00:00:00 2001 From: Saad Sahibjan Date: Fri, 29 Mar 2019 09:21:02 +0000 Subject: [PATCH] Kiosk Policy UI - Tenant domain changes --- .../public/js/operation-mod.js | 3 ++- .../public/templates/android-policy-edit.hbs | 2 +- .../public/templates/android-policy-operations.hbs | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) 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 515f7cb2c..775ddd756 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 @@ -509,6 +509,7 @@ var androidOperationModule = function () { deviceGlobalConfigurations["displayOrientation"] = operationData["displayOrientation"]; if (deviceGlobalConfigurations["isMultiUserDevice"] === true) { deviceGlobalConfigurations["isLoginRequired"] = operationData["isLoginRequired"]; + deviceGlobalConfigurations["tenantDomainName"] = $("#logged-in-user").data("domain"); var storeApps = $("#cosu-profile-app-configs-storeapps").data("storeapps"); var primaryUserApps = { "username" : "primaryUser", @@ -522,7 +523,7 @@ var androidOperationModule = function () { userAppConfigurations[index]["visibleAppList"].split(/,(?![^{]*})/) .map(function (item) { var packageName = item.trim(); - if (packageName) { + if (packageName && storeApps) { var i; for (i=0; i