{{defineZone "content"}}
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.groups/groups.hbs b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.groups/groups.hbs
index ad4c0969499..2c32a1227a0 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.groups/groups.hbs
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.groups/groups.hbs
@@ -117,18 +117,7 @@
Select user roles to manage group sharing
Select user roles to manage group sharing
-
-
- {{#each userRoles}}
-
-
-
- {{/each}}
+
@@ -144,7 +133,7 @@
{{/if}}
- Next
+ Share
- {{#each userRoles}} -
-
-
- {{/each}}
+ "; + for (var i = 0; i < data.roles.length; i++) { + html += ''; + $('.roleCheckBoxes').each( + function () { + if (data.roles[i] == $(this).data('role-name')) { + $(this).attr('checked', true); + } + } + ); + } + $("#rolesListing").html(html); + markAlreadySavedUsersRoles(groupId); + } else { + $("#rolesListing").html("No roles available"); + } + } else { + displayErrors(xhr); + } + }; + + invokerUtil.get("/api/device-mgt/v1.0/roles?offset=0&limit=100&user-store=all", + successCallback, function (message) { + displayErrors(message); + }); +} + function addNewRole(roles) { $(modalPopupContent).html($('#share-group-w3-modal-content').html()); $("a#share-group-w3-yes-link").click(function () { @@ -547,10 +582,6 @@ function togglePermissionAction(element) { function updateGroupShare(groupId, roles) { var successCallback = function (data) { $(modalPopupContent).html($('#share-group-200-content').html()); - setTimeout(function () { - hidePopup(); - location.reload(false); - }, 2000); }; invokerUtil.post("/api/device-mgt/v1.0/groups/id/" + groupId + "/share", diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.policy.view/view.hbs b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.policy.view/view.hbs index ea2b91a78c2..a650c9e151f 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.policy.view/view.hbs +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.policy.view/view.hbs @@ -13,61 +13,59 @@
-
-
-
-
- {{/defineZone}}
-
-
- Policy Overview
-
- {{#defineZone "policy-detail-properties"}}
- Platform | -- |
Ownership | -- |
Action upon non-compliance | -- |
Status | -- |
Assigned Users | -- |
Assigned Roles | -- |
Description
-
-
-
-
- -
- Profile Information
+
+
+
+ {{/defineZone}}
+
+
+ Policy Overview
+
+ {{#defineZone "policy-detail-properties"}}
+ Platform | ++ |
Ownership | ++ |
Action upon non-compliance | ++ |
Status | ++ |
Assigned Users | ++ |
Assigned Roles | ++ |
Description
+
+
+
+
+ +
+ Profile Information
+
+
+
-
-
-
-
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.theme/public/css/custom-desktop.css b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.theme/public/css/custom-desktop.css
index 34872f31a21..1a89379d3f8 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.theme/public/css/custom-desktop.css
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.theme/public/css/custom-desktop.css
@@ -3522,7 +3522,7 @@ a.btn-operations {
font-size: 13px;
color: #fff;
background: #11375B;
- padding: 10px 24px;
+ padding: 5px 20px;
display: inline-block;
margin-right: 2px;
text-decoration: none;
-
- - Loading platform features . . . -
-
-
+ - - Loading platform features . . . -
-
-
+
+
+ + Loading platform features . . . +
+
+ + Loading platform features . . . +
+