From f47a1cdc55c17151559404a630b7c0c8d587912e Mon Sep 17 00:00:00 2001 From: dilanua Date: Thu, 22 Sep 2016 22:59:42 +0530 Subject: [PATCH] Fix for JIRA: https://wso2.org/jira/browse/EMM-1614 --- .../app/units/mdm.unit.device.view/view.hbs | 20 +++++++++++-------- .../app/units/mdm.unit.device.view/view.js | 2 ++ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.view/view.hbs b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.view/view.hbs index 67f86d7b58..beaad78c88 100644 --- a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.view/view.hbs +++ b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.view/view.hbs @@ -23,16 +23,20 @@ {{#defineZone "device-detail-properties"}} - - - - - {{#if device.viewModel.model}} - - - + {{#if device.viewModel.vendor}} + + + {{/if}} + {{#if device.viewModel.vendor}} + {{#if device.viewModel.model}} + + + + + {{/if}} + {{/if}} diff --git a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.view/view.js b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.view/view.js index ecb98e08f2..65a2e5fba1 100644 --- a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.view/view.js +++ b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.view/view.js @@ -52,6 +52,8 @@ function onRequest(context) { longitude: device["properties"]["LONGITUDE"] }; } else if (device["type"] == "android") { + viewModel["deviceName"] = device["name"]; + viewModel["deviceIdentifier"] = device["deviceIdentifier"]; viewModel["imei"] = device["properties"]["IMEI"]; viewModel["model"] = device["deviceInfo"]["deviceModel"]; viewModel["vendor"] = device["deviceInfo"]["vendor"];
Device{{device.viewModel.vendor}} {{device.properties.model}}
Model{{device.viewModel.model}}
Device{{device.viewModel.deviceName}}
Model{{device.viewModel.vendor}} {{device.viewModel.model}}
IMEI {{device.viewModel.imei}}