mirror of https://github.com/Chocobozzz/PeerTube
Fix i18n generation
parent
0b204d7e44
commit
340ce5c52f
|
@ -28,11 +28,12 @@ export interface ListOverflowItem {
|
||||||
changeDetection: ChangeDetectionStrategy.OnPush
|
changeDetection: ChangeDetectionStrategy.OnPush
|
||||||
})
|
})
|
||||||
export class ListOverflowComponent<T extends ListOverflowItem> implements AfterViewInit {
|
export class ListOverflowComponent<T extends ListOverflowItem> implements AfterViewInit {
|
||||||
|
@Input() items: T[]
|
||||||
|
@Input() itemTemplate: TemplateRef<{item: T}>
|
||||||
|
|
||||||
@ViewChild('modal', { static: true }) modal: ElementRef
|
@ViewChild('modal', { static: true }) modal: ElementRef
|
||||||
@ViewChild('itemsParent', { static: true }) parent: ElementRef<HTMLDivElement>
|
@ViewChild('itemsParent', { static: true }) parent: ElementRef<HTMLDivElement>
|
||||||
@ViewChildren('itemsRendered') itemsRendered: QueryList<ElementRef>
|
@ViewChildren('itemsRendered') itemsRendered: QueryList<ElementRef>
|
||||||
@Input() items: T[]
|
|
||||||
@Input() itemTemplate: TemplateRef<{item: T}>
|
|
||||||
|
|
||||||
showItemsUntilIndexExcluded: number
|
showItemsUntilIndexExcluded: number
|
||||||
active = false
|
active = false
|
||||||
|
@ -55,7 +56,7 @@ export class ListOverflowComponent<T extends ListOverflowItem> implements AfterV
|
||||||
return !!this.showItemsUntilIndexExcluded
|
return !!this.showItemsUntilIndexExcluded
|
||||||
}
|
}
|
||||||
|
|
||||||
@HostListener('window:resize', ['$event'])
|
@HostListener('window:resize')
|
||||||
onWindowResize () {
|
onWindowResize () {
|
||||||
this.isInTouchScreen = !!this.screenService.isInTouchScreen()
|
this.isInTouchScreen = !!this.screenService.isInTouchScreen()
|
||||||
this.isInMobileView = !!this.screenService.isInMobileView()
|
this.isInMobileView = !!this.screenService.isInMobileView()
|
||||||
|
|
Loading…
Reference in New Issue