diff --git a/ui/ui-frontend/projects/identity/src/app/user/group-attribution/group-attribution.component.html b/ui/ui-frontend/projects/identity/src/app/user/group-attribution/group-attribution.component.html index 93c7f49cf1c85f196fc6a439c339d9fc26373779..1fe59e3634811f67783211d1e76cdc9318f52f14 100644 --- a/ui/ui-frontend/projects/identity/src/app/user/group-attribution/group-attribution.component.html +++ b/ui/ui-frontend/projects/identity/src/app/user/group-attribution/group-attribution.component.html @@ -4,7 +4,7 @@ <div class="mt-3 content"> <div> - <app-group-list [groups] = "activeGroups" (selectedGroupEvent)="updateGroup($event)"></app-group-list> + <app-group-list [groups] = "activeGroups" (selectedGroupEvent)="updateGroup($event)" [userGroupName] = "userGroupName"></app-group-list> </div> <div class="actions"> <button type="button" class="btn primary" (click)="saveUserUpdate()" [disabled]="!selectedGroupName" i18n="group attribution edit@@groupAttributionEdit">Modifier</button> diff --git a/ui/ui-frontend/projects/identity/src/app/user/group-attribution/group-attribution.component.ts b/ui/ui-frontend/projects/identity/src/app/user/group-attribution/group-attribution.component.ts index c7e274a85f3afb075da0338bd0a2c84a094a1d84..da600c306403709da693e585cafa77538e1a1a0d 100644 --- a/ui/ui-frontend/projects/identity/src/app/user/group-attribution/group-attribution.component.ts +++ b/ui/ui-frontend/projects/identity/src/app/user/group-attribution/group-attribution.component.ts @@ -62,6 +62,7 @@ export class GroupAttributionComponent implements OnInit { activeGroups: GroupSelection[]; selectedGroupName: string; CUSTOMER_ACTIVE_PROFILE_GROUPS_INDEX = 2; + userGroupName: string; public stepIndex = 0; public stepCount = 1; @@ -78,6 +79,7 @@ export class GroupAttributionComponent implements OnInit { public ngOnInit(): void { this.user = this.data[0]; + this.userGroupName = this.data[1].name; this.resetActiveGroups(); } diff --git a/ui/ui-frontend/projects/identity/src/app/user/group-attribution/group-list/group-list.component.ts b/ui/ui-frontend/projects/identity/src/app/user/group-attribution/group-list/group-list.component.ts index 9f76fb93987956c75c3294dda7e0c575a6c9dcac..d81f28314d34acf8988d234ad3c96bd6c05f9578 100644 --- a/ui/ui-frontend/projects/identity/src/app/user/group-attribution/group-list/group-list.component.ts +++ b/ui/ui-frontend/projects/identity/src/app/user/group-attribution/group-list/group-list.component.ts @@ -39,7 +39,6 @@ import { Component, EventEmitter, Inject, Input, OnInit, Output } from '@angular import { MAT_DIALOG_DATA } from '@angular/material/dialog'; import { collapseAnimation, rotateAnimation } from 'ui-frontend-common'; import { GroupSelection } from './../../group-selection.interface'; - @Component({ selector: 'app-group-list', templateUrl: './group-list.component.html', @@ -60,6 +59,11 @@ export class GroupListComponent implements OnInit { @Input() public searchActiv = false; + @Input() + public set userGroupName(val: string) { + this.groupName = val; + } + @Output() public selectedGroupEvent = new EventEmitter<GroupSelection>();