Skip to content

Commit b6bf45a

Browse files
nav bar org name fix
1 parent f4ca57b commit b6bf45a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/app/navbar/navbar.component.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
</li>
1515
</ul>
1616
</div>
17+
1718
<ng-template #loggedInBlock>
1819
<div class="navbar-header">
1920
<button
@@ -48,11 +49,11 @@
4849
<div class="nav-bar-selector-building-icon">
4950
<img src="assets/images/building.svg" width="20" height="20" />
5051
</div>
51-
test
52+
{{ getOrgName(selected) }}
5253
</div>
5354
</mat-select-trigger>
5455
<mat-option *ngFor="let org of organisations" [value]="org.id">
55-
{{ org.name + "www" }}
56+
{{ org.name }}
5657
</mat-option>
5758
</mat-select>
5859

src/app/navbar/navbar.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ export class NavbarComponent implements OnInit {
132132
}
133133
this.setLocalPermissionCheck(userInfo.organizations[0]?.id);
134134
}
135-
135+
getOrgName(id: number) {
136+
return this.organisations.find(org => org.id === id).name ?? "";
137+
}
136138
private setLocalPermissionCheck(orgId: number) {
137139
this.isUserAdmin = this.meService.hasAccessToTargetOrganization(
138140
OrganizationAccessScope.UserAdministrationWrite,

0 commit comments

Comments
 (0)