From 43b0c2fb9e1b0c119510db2eb9f60071ae583082 Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Tue, 15 Dec 2020 17:19:15 -0500 Subject: [PATCH] Fixed bug that prevented subscription videos from being shown in the subscription page --- .../subscription-file-card.component.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/app/subscription/subscription-file-card/subscription-file-card.component.ts b/src/app/subscription/subscription-file-card/subscription-file-card.component.ts index c63a6f3..e500a7d 100644 --- a/src/app/subscription/subscription-file-card/subscription-file-card.component.ts +++ b/src/app/subscription/subscription-file-card/subscription-file-card.component.ts @@ -15,9 +15,6 @@ export class SubscriptionFileCardComponent implements OnInit { image_errored = false; image_loaded = false; - scrollSubject; - scrollAndLoad; - formattedDuration = null; @Input() file; @@ -27,13 +24,7 @@ export class SubscriptionFileCardComponent implements OnInit { @Output() goToFileEmit = new EventEmitter(); @Output() reloadSubscription = new EventEmitter(); - constructor(private snackBar: MatSnackBar, private postsService: PostsService, private dialog: MatDialog) { - this.scrollSubject = new Subject(); - this.scrollAndLoad = Observable.merge( - Observable.fromEvent(window, 'scroll'), - this.scrollSubject - ); - } + constructor(private snackBar: MatSnackBar, private postsService: PostsService, private dialog: MatDialog) {} ngOnInit() { if (this.file.duration) { @@ -45,10 +36,6 @@ export class SubscriptionFileCardComponent implements OnInit { this.image_errored = true; } - onHoverResponse() { - this.scrollSubject.next(); - } - imageLoaded(loaded) { this.image_loaded = true; }