-
-
- {{device.viewModel.externalMemory.usage}} %
+ {{/if}}
+ {{#if device.viewModel.externalMemory}}
+
+
+
+
External Storage
+
+
+
+ {{device.viewModel.externalMemory.usage}} %
TOTAL OF {{device.viewModel.externalMemory.total}} GB
+
+ {{/if}}
+ {{else}}
+
+
+
+ Battery, RAM and Storage related information is not available yet.
+
{{/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 d4a932630..8ba22bcd0 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
@@ -76,6 +76,8 @@ function onRequest(context) {
deviceInfo = info;
if (device["deviceInfo"]) {
+ viewModel["deviceInfo"] = true;
+
viewModel["model"] = device["deviceInfo"]["deviceModel"];
viewModel["vendor"] = device["deviceInfo"]["vendor"];
viewModel["lastUpdatedTime"] = device["deviceInfo"]["updatedTime"].
@@ -117,6 +119,8 @@ function onRequest(context) {
} else {
viewModel["externalMemory"]["usage"] = 0;
}
+ } else {
+ viewModel["deviceInfo"] = false;
}
} else if (device["type"] == "windows") {
viewModel["imei"] = device["properties"]["IMEI"];