File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1414 </ li >
1515 </ ul >
1616 </ div >
17+
1718 < ng-template #loggedInBlock >
1819 < div class ="navbar-header ">
1920 < button
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
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments