mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +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:
@@ -26,6 +26,7 @@
|
||||
import { Component, Input, ViewEncapsulation, HostListener, ViewChild } from '@angular/core';
|
||||
import { ContentActionRef } from '@alfresco/adf-extensions';
|
||||
import { MatMenuTrigger } from '@angular/material/menu';
|
||||
import { ThemePalette } from '@angular/material/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-toolbar-menu',
|
||||
@@ -38,16 +39,17 @@ export class ToolbarMenuComponent {
|
||||
actionRef: ContentActionRef;
|
||||
|
||||
@Input()
|
||||
color = '';
|
||||
color: ThemePalette;
|
||||
|
||||
@ViewChild('matTrigger') matTrigger: MatMenuTrigger;
|
||||
@ViewChild('matTrigger')
|
||||
matTrigger: MatMenuTrigger;
|
||||
|
||||
@HostListener('document:keydown.Escape')
|
||||
handleKeydownEscape() {
|
||||
this.matTrigger.closeMenu();
|
||||
}
|
||||
|
||||
trackById(_: number, obj: { id: string }) {
|
||||
trackByActionId(_: number, obj: ContentActionRef): string {
|
||||
return obj.id;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user