diff --git a/src/app/pages/manage-group/manage-group-edit-roles-confirm/manage-group-edit-roles-confirm-component.ts b/src/app/pages/manage-group/manage-group-edit-roles-confirm/manage-group-edit-roles-confirm-component.ts
index e5805d3da..aefcc53e0 100644
--- a/src/app/pages/manage-group/manage-group-edit-roles-confirm/manage-group-edit-roles-confirm-component.ts
+++ b/src/app/pages/manage-group/manage-group-edit-roles-confirm/manage-group-edit-roles-confirm-component.ts
@@ -34,7 +34,9 @@ export class ManageGroupEditRolesConfirmComponent extends BaseComponent implemen
groupName: string = '';
roleIds: number[] = [];
addingRoles: Role[] = [];
+ addingOrderRoles: Role[] = [];
removingRoles: Role[] = [];
+ removingOrderdRoles: Role[] = [];
routeData: any = {};
userCount: number = 0;
rolesTableHeaders = ['NAME'];
@@ -68,9 +70,41 @@ export class ManageGroupEditRolesConfirmComponent extends BaseComponent implemen
} else {
this.titleService.setTitle(`Confirm services – Manage Groups - CCS`);
}
+ this.getOrganisationRoles()
this.initialteServiceRoleGroups()
}
+ getOrganisationRoles() {
+ this.orgGroupService.getOrganisationRoles(this.organisationId).subscribe({
+ next: (roleListResponse: Role[]) => {
+ if (roleListResponse != null) {
+ roleListResponse.forEach((roles:Role,index:number)=>{
+ this.chanageIndexValue(roles,index)
+ })
+ }
+ },
+ error: (error: any) => {
+ }
+ });
+ }
+
+
+ private chanageIndexValue(roles:Role,index:number){
+ if(this.removingRoles.length != 0){
+ let removeRole = this.removingRoles.find((f)=> f.roleKey === roles.roleKey)
+ if(removeRole != undefined){
+ this.removingOrderdRoles.push(removeRole)
+ }
+ }
+ if(this.addingRoles.length != 0){
+ let addingRole = this.addingRoles.find((f)=> f.roleKey === roles.roleKey)
+ if(addingRole != undefined){
+ this.addingOrderRoles.push(addingRole)
+ }
+ }
+ }
+
+
onConfirmClick() {
let groupPatchRequestInfo: OrganisationGroupRequestInfo = {
roleInfo: {
From 198afde29eebf2ea0584f973b78710f23afb74fb Mon Sep 17 00:00:00 2001
From: ajithmuthukumar-bc
<99731656+ajithmuthukumar-bc@users.noreply.github.com>
Date: Wed, 5 Apr 2023 18:24:21 +0530
Subject: [PATCH 02/25] PPG 212 non associated email domain check UI (#1222)
* accordino and mock api integration complete
* disbale condition removed
* 212 ui work completed
---
src/app/models/organisationGroup.ts | 14 ++
.../manage-group-edit-name-component.ts | 1 -
...nage-group-edit-roles-confirm-component.ts | 2 -
.../manage-group-edit-roles-component.html | 1 -
.../manage-group-edit-roles-component.ts | 8 --
...age-group-operation-success-component.html | 63 +++++++++
...age-group-operation-success-component.scss | 47 ++++++-
...anage-group-operation-success-component.ts | 127 +++++++++++++++---
.../manage-group-view-component.ts | 7 +-
...e-user-add-single-user-detail.component.ts | 2 +
.../operation-success.component.html | 6 +-
.../operation-success.component.ts | 24 +++-
.../user-profile/user-profile-component.ts | 2 +-
src/app/services/auth/auth.service.ts | 1 +
.../wrapper/wrapper-org--group-service.ts | 14 ++
15 files changed, 284 insertions(+), 35 deletions(-)
diff --git a/src/app/models/organisationGroup.ts b/src/app/models/organisationGroup.ts
index 90fb0c30e..c54157183 100644
--- a/src/app/models/organisationGroup.ts
+++ b/src/app/models/organisationGroup.ts
@@ -83,4 +83,18 @@ export interface GroupUser {
userId: string;
name: string;
isAdmin: boolean;
+}
+
+export interface pendingApprovalResponce {
+ currentPage: number;
+ groupUser: pendingApprovalGroupRole[];
+ pageCount:number;
+ rowCount:number;
+}
+
+export interface pendingApprovalGroupRole {
+ isAdmin: boolean
+ isPendingApproval: boolean
+ name: string
+ userId: string
}
\ No newline at end of file
diff --git a/src/app/pages/manage-group/manage-group-edit-name/manage-group-edit-name-component.ts b/src/app/pages/manage-group/manage-group-edit-name/manage-group-edit-name-component.ts
index 9b2981637..a6ccbb7e5 100644
--- a/src/app/pages/manage-group/manage-group-edit-name/manage-group-edit-name-component.ts
+++ b/src/app/pages/manage-group/manage-group-edit-name/manage-group-edit-name-component.ts
@@ -86,7 +86,6 @@ export class ManageGroupEditNameComponent
indexOfspecialChars = indexOfspecialChars + 1
}
}
- debugger
return indexOfGname === indexOfspecialChars ? true : false
}
diff --git a/src/app/pages/manage-group/manage-group-edit-roles-confirm/manage-group-edit-roles-confirm-component.ts b/src/app/pages/manage-group/manage-group-edit-roles-confirm/manage-group-edit-roles-confirm-component.ts
index aefcc53e0..cfc7db94d 100644
--- a/src/app/pages/manage-group/manage-group-edit-roles-confirm/manage-group-edit-roles-confirm-component.ts
+++ b/src/app/pages/manage-group/manage-group-edit-roles-confirm/manage-group-edit-roles-confirm-component.ts
@@ -112,8 +112,6 @@ export class ManageGroupEditRolesConfirmComponent extends BaseComponent implemen
removedRoleIds: this.removingRoles.map(rr => rr.roleId)
}
};
- console.log(groupPatchRequestInfo);
-
this.orgGroupService.patchUpdateOrganisationGroup(this.organisationId, this.editingGroupId, groupPatchRequestInfo)
.subscribe(
(result) => {
diff --git a/src/app/pages/manage-group/manage-group-edit-roles/manage-group-edit-roles-component.html b/src/app/pages/manage-group/manage-group-edit-roles/manage-group-edit-roles-component.html
index 88dc01b21..60b89855b 100644
--- a/src/app/pages/manage-group/manage-group-edit-roles/manage-group-edit-roles-component.html
+++ b/src/app/pages/manage-group/manage-group-edit-roles/manage-group-edit-roles-component.html
@@ -54,7 +54,6 @@