mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[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:
@@ -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"
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user