Merge branch 'master' into 'master'

Fix https://gitlab.com/entgra/product-iots/issues/316 - app restrictions policy app update issue

Closes product-iots#316

See merge request entgra/carbon-device-mgt-plugins!134
revert-dabc3590
Dharmakeerthi Lasantha 5 years ago
commit 9196c685f3

@ -1167,20 +1167,6 @@ var androidOperationModule = function () {
}
}
}
// only for app whitelisting and black listing
if (operationCode == "APP-RESTRICTION" && key == "restrictedApplications") {
//remove elements before adding
$('[data-add-form-container="#restricted-applications-grid"]').empty();
var i;
for (i = 0; i < uiPayload.restrictedApplications.length; ++i) {
$('[data-add-form-container="#restricted-applications-grid"]').append('<tr>' +
'<th>'+ (i+1) +'</th> <th>' + uiPayload.restrictedApplications[i].appName +
'</th> <th>' + uiPayload.restrictedApplications[i].packageName + '</th></tr>');
}
}
}
);
};

Loading…
Cancel
Save