-
+
Exception at backend. Try Later.
@@ -291,7 +296,7 @@
-
+
+
Operation not permitted.
@@ -304,10 +309,30 @@
+
+
+
+
+
+
+
+
+ You don't have any groups to add this device. Please add group first.
++
+
+ Add New Group
+
+
+
+ Cancel
+
+
+
-
+
Device does not exist.
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js
index e8b20bd5c85..49d0707be51 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js
@@ -442,18 +442,6 @@ $(document).ready(function () {
}
});
- $(".ast-container").on("click", ".claim-btn", function(e) {
- e.stopPropagation();
- var deviceId = $(this).data("deviceid");
- var serviceURL = "/temp-controller-agent/enrollment/claim?username=" + currentUser;
- var deviceIdentifier = {id: deviceId, type: "TemperatureController"};
- invokerUtil.put(serviceURL, deviceIdentifier, function(message) {
- console.log(message);
- }, function(message){
- console.log(message.content);
- });
- });
-
/* for data tables*/
$('[data-toggle="tooltip"]').tooltip();
@@ -532,10 +520,6 @@ function attachDeviceEvents() {
invokerUtil.get(serviceURL, function (data) {
var groups = JSON.parse(data);
- if (groups.length <= 0) {
- $('#user-groups').html("There is no any groups available");
- return;
- }
var str = '