From 340ce5c52fa13df763f26f99eeec2489b35bb44a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 28 Feb 2020 14:09:18 +0100 Subject: [PATCH] Fix i18n generation --- client/src/app/shared/misc/list-overflow.component.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/app/shared/misc/list-overflow.component.ts b/client/src/app/shared/misc/list-overflow.component.ts index c493ab795..30f43ba43 100644 --- a/client/src/app/shared/misc/list-overflow.component.ts +++ b/client/src/app/shared/misc/list-overflow.component.ts @@ -28,11 +28,12 @@ export interface ListOverflowItem { changeDetection: ChangeDetectionStrategy.OnPush }) export class ListOverflowComponent implements AfterViewInit { + @Input() items: T[] + @Input() itemTemplate: TemplateRef<{item: T}> + @ViewChild('modal', { static: true }) modal: ElementRef @ViewChild('itemsParent', { static: true }) parent: ElementRef @ViewChildren('itemsRendered') itemsRendered: QueryList - @Input() items: T[] - @Input() itemTemplate: TemplateRef<{item: T}> showItemsUntilIndexExcluded: number active = false @@ -55,7 +56,7 @@ export class ListOverflowComponent implements AfterV return !!this.showItemsUntilIndexExcluded } - @HostListener('window:resize', ['$event']) + @HostListener('window:resize') onWindowResize () { this.isInTouchScreen = !!this.screenService.isInTouchScreen() this.isInMobileView = !!this.screenService.isInMobileView() -- 2.25.1