[ADF-5433] enable strict mode for angular templates (#2191)

* enable strict mode for angular templates

* update formatting

* fix lint

* fix formatting

* remove deprecated method

* upgrade to latest ADF

* restore error handler
This commit is contained in:
Denys Vuika
2021-06-25 12:51:56 +01:00
committed by GitHub
parent d593193cf3
commit 35d6fb7b5c
50 changed files with 150 additions and 80 deletions

View File

@@ -6,7 +6,7 @@
</button>
<mat-menu #childMenu="matMenu" class="app-create-menu__sub-menu">
<ng-container *ngFor="let child of actionRef.children; trackBy: trackById">
<ng-container *ngFor="let child of actionRef.children; trackBy: trackByActionId">
<app-toolbar-menu-item [actionRef]="child"></app-toolbar-menu-item>
</ng-container>
</mat-menu>
@@ -23,7 +23,7 @@
<ng-container *ngSwitchDefault>
<button
[id]="actionRef.id"
role="menuItem"
role="menuitem"
mat-menu-item
[role]="'menuitem'"
[disabled]="actionRef.disabled"

View File

@@ -56,7 +56,7 @@ export class ToolbarMenuItemComponent {
return !!(actionRef && actionRef.actions && actionRef.actions.click);
}
trackById(_: number, obj: { id: string }) {
trackByActionId(_: number, obj: ContentActionRef): string {
return obj.id;
}
}