11< ng-template #emptySearchForm >
22 < mat-form-field class ="search-form--full-width invisible ">
3- < input matInput />
3+ < input matInput />
44 </ mat-form-field >
55</ ng-template >
66
99 < form class ="search-form ">
1010 < ng-container *ngIf ="hasEmail() && hasAnyPermission(); else emptySearchForm ">
1111 < div class ="custom-search-field ">
12+ < mat-icon class ="icon " svgIcon ="search-icon "> </ mat-icon >
1213 < input
13- placeholder ="{{ 'SEARCH.PLACEHOLDER' | translate }} "
14- type ="text "
15- id ="searchQuery "
16- class ="search-input "
17- aria-label ="Search "
1814 #searchInput
19- [value] ="searchText "
2015 (keyup.enter) ="search(searchInput.value) "
21- (input) ="search(searchInput.value) "
16+ [value] ="searchText "
17+ aria-label ="Search "
18+ class ="search-input "
19+ id ="searchQuery "
20+ placeholder ="{{ 'SEARCH.PLACEHOLDER' | translate }} "
21+ type ="text "
2222 />
2323 </ div >
2424 </ ng-container >
2525 </ form >
2626
27- < button class =" profile-button " [matMenuTriggerFor] ="menu " id ="userDropdown ">
27+ < button [matMenuTriggerFor] ="menu " class =" profile-button " id ="userDropdown ">
2828 < div class ="user-information-container ">
2929 < div class ="name-and-title-container ">
3030 < div class ="name-container "> {{ getUsername() }}</ div >
3131 <!-- <div class="title-container">Global Admin</div> -->
3232 </ div >
3333 < div >
34- < mat-icon svgIcon ="angle-down " class ="angle-down-icon "> </ mat-icon >
34+ < mat-icon class ="angle-down-icon " svgIcon ="angle-down "> </ mat-icon >
3535 </ div >
3636 </ div >
3737 </ button >
38- < mat-menu class =" matMenuMargin " xPosition =" before " #menu =" matMenu ">
39- < button mat-menu-item class ="userName ">
38+ < mat-menu #menu =" matMenu " class =" matMenuMargin " xPosition =" before ">
39+ < button class ="userName " mat-menu-item >
4040 < div class ="userNameFont "> {{ getUsername() }}</ div >
4141 </ button >
4242 < a *ngIf ="hasEmail() " mat-menu-item routerLink ="/user-page "> {{ "USER_PAGE.USER_PAGE" | translate }} </ a >
4343 < a
44- mat-menu-item
44+ (click) =" onLogout() "
4545 [attr.href] ="getKombitLogoutUrl() ? getKombitLogoutUrl() : null "
46+ mat-menu-item
4647 target ="{{ isLoggedInWithKombit() ? '_blank' : undefined }} "
47- (click) ="onLogout() "
48- > {{ "NAV.LOGOUT" | translate }}
48+ > {{ "NAV.LOGOUT" | translate }}
4949 </ a >
5050 </ mat-menu >
5151</ div >
5555 < nav >
5656 < ng-template [ngIf] ="backButtonTitle ">
5757 < fa-icon [icon] ="faChevronLeft " class ="icon--primary mb-1 "> </ fa-icon >
58- < a (click) ="routeTo() " class =" back-button " [routerLink] ="[] "> {{ backButtonTitle }}</ a >
58+ < a (click) ="routeTo() " [routerLink] ="[] " class =" back-button "> {{ backButtonTitle }}</ a >
5959 </ ng-template >
6060 < ng-template [ngIf] ="data || subPage === true ">
6161 < fa-icon [icon] ="faChevronLeft " class ="icon--primary mb-1 "> </ fa-icon >
62- < a (click) ="routeTo() " class =" back-button " [routerLink] ="[] "> {{ backButton.label }}</ a >
62+ < a (click) ="routeTo() " [routerLink] ="[] " class =" back-button "> {{ backButton.label }}</ a >
6363 < h3 class ="pl-md-3 "> {{ subTitle || staticTitle }}</ h3 >
6464 </ ng-template >
6565 < ng-template [ngIf] ="title ">
@@ -71,25 +71,25 @@ <h3 class="pl-md-3">{{ subTitle || staticTitle }}</h3>
7171
7272 < div *ngIf ="dropDownButton && addDetailDowndown === true && canEdit ">
7373 < button
74- type =" button "
75- id =" dropdown-{{ data?.name }} "
74+ aria-expanded =" false "
75+ aria-haspopup =" true "
7676 class ="btn btn-primary dropdown-toggle "
7777 data-toggle ="dropdown "
78- aria-haspopup =" true "
79- aria-expanded =" false "
78+ id =" dropdown-{{ data?.name }} "
79+ type =" button "
8080 >
8181 {{ dropDownButton.label }} < span class ="caret "> </ span >
8282 </ button >
83- < ul class =" dropdown-menu " attr.aria-labelledby ="dropdown-{{ data?.name }} ">
83+ < ul attr.aria-labelledby ="dropdown-{{ data?.name }} " class =" dropdown-menu ">
8484 < li class ="dropdown-item ">
8585 < a [routerLink] ="dropDownButton.editRouterLink "> {{ "TOPBAR.DROPDOWN.EDIT" | translate }} </ a >
8686 </ li >
8787 < ng-container *ngIf ="dropDownButton.extraOptions?.length > 0 ">
88- < li class =" dropdown-item " *ngFor ="let option of dropDownButton.extraOptions ">
88+ < li *ngFor ="let option of dropDownButton.extraOptions " class =" dropdown-item ">
8989 < a (click) ="onClickExtraDropdownOption(option.id) "> {{ option.label }}</ a >
9090 </ li >
9191 </ ng-container >
92- < li class =" dropdown-item " *ngIf ="dropDownButton.isErasable === true ">
92+ < li *ngIf ="dropDownButton.isErasable === true " class =" dropdown-item ">
9393 < a (click) ="onClickDelete() "> {{ "TOPBAR.DROPDOWN.DELETE" | translate }} </ a >
9494 </ li >
9595 </ ul >
@@ -99,13 +99,13 @@ <h3 class="pl-md-3">{{ subTitle || staticTitle }}</h3>
9999
100100 < button
101101 *ngIf ="ctaRouterLink && ctaRouterLink != '' && canEdit "
102+ [attr.aria-label] ="ctaLabel "
102103 [routerLink] ="ctaRouterLink "
103- routerLinkActive ="active "
104104 class ="create-application "
105+ routerLinkActive ="active "
105106 type ="button "
106- [attr.aria-label] ="ctaLabel "
107107 >
108- < mat-icon svgIcon ="plus-circle " class ="plus-circle-icon "> </ mat-icon >
108+ < mat-icon class ="plus-circle-icon " svgIcon ="plus-circle "> </ mat-icon >
109109 < div class ="create-application-button-label ">
110110 {{ ctaLabel }}
111111 </ div >
@@ -114,16 +114,16 @@ <h3 class="pl-md-3">{{ subTitle || staticTitle }}</h3>
114114
115115<!-- action buttons end -->
116116
117- @if(searchText){
118- < div class ="search-view ">
119- < div class ="container-fluid ">
120- < div class ="row ">
121- < div class ="col-12 ">
122- < div class ="jumbotron--table ">
123- < app-search-table [searchText] ="searchText "> </ app-search-table >
117+ @if (searchText) {
118+ < div class ="search-view ">
119+ < div class ="container-fluid ">
120+ < div class ="row ">
121+ < div class ="col-12 ">
122+ < div class ="jumbotron--table ">
123+ < app-search-table [searchText] ="searchText "> </ app-search-table >
124+ </ div >
124125 </ div >
125126 </ div >
126127 </ div >
127128 </ div >
128- </ div >
129129}
0 commit comments