Skip to content

Commit

Permalink
Fixing username dropdown on UAT
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwhorton committed Apr 8, 2024
1 parent 36f8bf8 commit 5fa63f0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion software/nbia-uat/src/app/pgRole/pgRole.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</div>
</div>

<p-dropdown [options]="userNames" [(ngModel)]="selectedUserName" [showClear]="true" [filter]="true" placeholder="Select a user name" appendTo="body" [panelStyle]="{minWidth:'12em'}"
<p-dropdown [options]="userNames" filterBy="label" optionLabel="label" [(ngModel)]="selectedUserName" [showClear]="true" [filter]="true" placeholder="Select a user name" appendTo="body" [panelStyle]="{minWidth:'12em'}"
[virtualScroll]="true" itemSize="30"(onChange)="getPgRolesForUser()"
pTooltip="To find a user quickly, enter a whole or partial login name to filter then click on the login name to select the user"
></p-dropdown>
Expand Down
2 changes: 1 addition & 1 deletion software/nbia-uat/src/app/pgRole/pgRole.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class PgRoleComponent implements OnInit {
this.statusMessage = [];
this.pgRoles = [];
this.pgSize = 0;
this.pgRoleService.getPgRolesForUser(this.selectedUserName).
this.pgRoleService.getPgRolesForUser(this.selectedUserName["label"]).
subscribe((pgRoles:PgRole[]) => {
this.pgRoles = pgRoles;
this.pgSize = this.pgRoles ? this.pgRoles.length : 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</div>
</div>

<p-dropdown [options]="userNames" [(ngModel)]="selectedUserName" [showClear]="true" [filter]="true" placeholder="Select a user name" appendTo="body" [panelStyle]="{minWidth:'12em'}"
<p-dropdown [options]="userNames" filterBy="label" optionLabel="label" [(ngModel)]="selectedUserName" [showClear]="true" [filter]="true" placeholder="Select a user name" appendTo="body" [panelStyle]="{minWidth:'12em'}"
[virtualScroll]="true" itemSize="30"(onChange)="getGroupsForUser()"
pTooltip="To find a user quickly, enter a whole or partial login name to filter then click on the login name to select the user"
></p-dropdown>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class UserToGroupComponent implements OnInit {
console.log("group enabled: will show user group association:"+this.selectedUserName );
this.statusMessage = [];
this.groups = [];
this.userToGroupService.getGroupsForUser(this.selectedUserName).
this.userToGroupService.getGroupsForUser(this.selectedUserName["label"]).
subscribe((groups:any) => {
this.groups = groups;
},
Expand Down

0 comments on commit 5fa63f0

Please sign in to comment.