Fix i18n generation
authorChocobozzz <me@florianbigard.com>
Fri, 28 Feb 2020 13:09:18 +0000 (14:09 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 28 Feb 2020 13:09:18 +0000 (14:09 +0100)
client/src/app/shared/misc/list-overflow.component.ts

index c493ab79523a0ed8d111af0857217d6586cefb29..30f43ba43f37c8b88deb36cb162b23ec0194784e 100644 (file)
@@ -28,11 +28,12 @@ export interface ListOverflowItem {
   changeDetection: ChangeDetectionStrategy.OnPush
 })
 export class ListOverflowComponent<T extends ListOverflowItem> implements AfterViewInit {
+  @Input() items: T[]
+  @Input() itemTemplate: TemplateRef<{item: T}>
+
   @ViewChild('modal', { static: true }) modal: ElementRef
   @ViewChild('itemsParent', { static: true }) parent: ElementRef<HTMLDivElement>
   @ViewChildren('itemsRendered') itemsRendered: QueryList<ElementRef>
-  @Input() items: T[]
-  @Input() itemTemplate: TemplateRef<{item: T}>
 
   showItemsUntilIndexExcluded: number
   active = false
@@ -55,7 +56,7 @@ export class ListOverflowComponent<T extends ListOverflowItem> implements AfterV
     return !!this.showItemsUntilIndexExcluded
   }
 
-  @HostListener('window:resize', ['$event'])
+  @HostListener('window:resize')
   onWindowResize () {
     this.isInTouchScreen = !!this.screenService.isInTouchScreen()
     this.isInMobileView = !!this.screenService.isInMobileView()