Browse Source
Update permission-management.component.ts
pull/21123/head
Masum ULU
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
2 deletions
-
npm/ng-packs/packages/permission-management/src/lib/components/permission-management.component.ts
|
|
|
@ -414,12 +414,14 @@ export class PermissionManagementComponent |
|
|
|
|
|
|
|
return this.service.get(this.providerName, this.providerKey).pipe( |
|
|
|
tap((permissionRes: GetPermissionListResultDto) => { |
|
|
|
const { groups } = permissionRes; |
|
|
|
const { groups } = permissionRes || {}; |
|
|
|
|
|
|
|
this.data = permissionRes; |
|
|
|
// this.permissionGroupSubject.next(groups);
|
|
|
|
|
|
|
|
this.permissionGroupSignal.set(groups); |
|
|
|
this.permissions = getPermissions(groups); |
|
|
|
this.setSelectedGroup(groups[0]); |
|
|
|
|
|
|
|
this.disabledSelectAllInAllTabs = this.permissions.every( |
|
|
|
per => |
|
|
|
per.isGranted && |
|
|
|
|