diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.view/public/js/device-view.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.view/public/js/device-view.js
index e57001fe29..50c6dfa07a 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.view/public/js/device-view.js
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.view/public/js/device-view.js
@@ -46,6 +46,19 @@ $(document).ready(function() {
});
+function getLogStatusIcon(entry) {
+ switch (entry) {
+ case 'COMPLETED':
+ return 'fw-success';
+ case 'PENDING':
+ return 'fw-pending';
+ case 'ERROR':
+ return 'fw-error';
+ default:
+ return 'fw-info'
+ }
+}
+
function loadOperationsLog(update) {
var operationsLogTable = "#operation-log";
if (update) {
@@ -95,7 +108,7 @@ function loadOperationsLog(update) {
data: "status",
class: "text-right extended-log-data log-record-status",
render: function(data, type, full, meta) {
- return ' ' + data + ' ';
+ return ' ' + data + ' ';
},
width: "100%"
}
@@ -166,11 +179,11 @@ function loadOperationsLog(update) {
function getLogStatusIcon(entry) {
switch (entry) {
case 'COMPLETED':
- return 'fw-success'
- break;
+ return 'fw-success';
case 'PENDING':
- return 'fw-pending'
- break;
+ return 'fw-pending';
+ case 'ERROR':
+ return 'fw-error';
default:
return 'fw-info'
}