aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-02-28 14:09:18 +0100
committerChocobozzz <me@florianbigard.com>2020-02-28 14:09:18 +0100
commit340ce5c52fa13df763f26f99eeec2489b35bb44a (patch)
treeb423bf1fe41d08da7396d80cfe756de405e9355c /client/src/app/shared
parent0b204d7e44dfc5c2e9415b4c185ba5e7d392286d (diff)
downloadPeerTube-340ce5c52fa13df763f26f99eeec2489b35bb44a.tar.gz
PeerTube-340ce5c52fa13df763f26f99eeec2489b35bb44a.tar.zst
PeerTube-340ce5c52fa13df763f26f99eeec2489b35bb44a.zip
Fix i18n generation
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/misc/list-overflow.component.ts7
1 files 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 {
28 changeDetection: ChangeDetectionStrategy.OnPush 28 changeDetection: ChangeDetectionStrategy.OnPush
29}) 29})
30export class ListOverflowComponent<T extends ListOverflowItem> implements AfterViewInit { 30export class ListOverflowComponent<T extends ListOverflowItem> implements AfterViewInit {
31 @Input() items: T[]
32 @Input() itemTemplate: TemplateRef<{item: T}>
33
31 @ViewChild('modal', { static: true }) modal: ElementRef 34 @ViewChild('modal', { static: true }) modal: ElementRef
32 @ViewChild('itemsParent', { static: true }) parent: ElementRef<HTMLDivElement> 35 @ViewChild('itemsParent', { static: true }) parent: ElementRef<HTMLDivElement>
33 @ViewChildren('itemsRendered') itemsRendered: QueryList<ElementRef> 36 @ViewChildren('itemsRendered') itemsRendered: QueryList<ElementRef>
34 @Input() items: T[]
35 @Input() itemTemplate: TemplateRef<{item: T}>
36 37
37 showItemsUntilIndexExcluded: number 38 showItemsUntilIndexExcluded: number
38 active = false 39 active = false
@@ -55,7 +56,7 @@ export class ListOverflowComponent<T extends ListOverflowItem> implements AfterV
55 return !!this.showItemsUntilIndexExcluded 56 return !!this.showItemsUntilIndexExcluded
56 } 57 }
57 58
58 @HostListener('window:resize', ['$event']) 59 @HostListener('window:resize')
59 onWindowResize () { 60 onWindowResize () {
60 this.isInTouchScreen = !!this.screenService.isInTouchScreen() 61 this.isInTouchScreen = !!this.screenService.isInTouchScreen()
61 this.isInMobileView = !!this.screenService.isInMobileView() 62 this.isInMobileView = !!this.screenService.isInMobileView()