Skip to content

Commit

Permalink
Fixed Bug 5536: Manage User/Manage my Account - Group Access tab - Se…
Browse files Browse the repository at this point in the history
…rvices are not displayed in order as Individual Access (#1289)
  • Loading branch information
jukibaskar-bc authored Apr 27, 2023
1 parent 5819106 commit 4349773
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,9 @@ export class ManageUserAddSingleUserDetailComponent
} else {
this.noneGroupsMember.data.push(group)
}
if(this.orgUserGroupRoles.length > 0){
this.orgUserGroupRoles = this.orgUserGroupRoles.sort(function(a,b){ return a.displayOrder - b.displayOrder});
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/user-profile/user-profile-component.html
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ <h2 class="govuk-tabs__title">
<div class="govuk-grid-row">
<div class="govuk-grid-column-full">

<p class="govuk-hints" *ngIf="isAdminUser == true">{{ 'ACCESS_TO_USER_SERVICE'| translate }}</p>
<p class="govuk-hints" *ngIf="isAdminUser == true">{{ 'ACCESS_TO_USER_SERVICE_MANAGE_MY_ACCOUNT'| translate }}</p>
<p class="govuk-hints" *ngIf="isAdminUser == false">{{ 'ACCESS_TO_REGULAR_USER_SERVICE'| translate }}</p>

<div *ngIf="roleDataList.length > 0 && isAdminUser==false">
Expand Down
3 changes: 3 additions & 0 deletions src/app/pages/user-profile/user-profile-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,9 @@ export class UserProfileComponent extends FormBaseComponent implements OnInit {
}
}
}
if(this.orgUserGroupRoles.length > 0){
this.orgUserGroupRoles = this.orgUserGroupRoles.sort(function(a,b){ return a.displayOrder - b.displayOrder});
}
this.groupsMember.isAdmin = this.isAdminUser;
this.noneGroupsMember.isAdmin = this.isAdminUser;
}
Expand Down
3 changes: 2 additions & 1 deletion src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -383,5 +383,6 @@
"ORG_ADMIN_GROUP_ACCESS": "You have access to the following services through your membership of one or more groups. You can manage group membership, and access to services, through the dashboard.",
"ORG_ADMIN_GROUP_ACCESS_NONE": "You do not have access to any service through your membership of a group. You can manage group membership, and access to services, through the dashboard.",
"PENDING_LABEL" : "Pending Approval",
"ACCESS_TO_REGULAR_USER_SERVICE": "These services are assigned to you as an individual, rather than through your membership of a group."
"ACCESS_TO_REGULAR_USER_SERVICE": "These services are assigned to you as an individual, rather than through your membership of a group.",
"ACCESS_TO_USER_SERVICE_MANAGE_MY_ACCOUNT": "Select the services that you need access to as an individual, rather than through your membership of a group."
}

0 comments on commit 4349773

Please sign in to comment.