mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-17 12:21:29 +03:00
Fixed bug that prevented subscription videos from being shown in the subscription page
This commit is contained in:
@@ -15,9 +15,6 @@ export class SubscriptionFileCardComponent implements OnInit {
|
|||||||
image_errored = false;
|
image_errored = false;
|
||||||
image_loaded = false;
|
image_loaded = false;
|
||||||
|
|
||||||
scrollSubject;
|
|
||||||
scrollAndLoad;
|
|
||||||
|
|
||||||
formattedDuration = null;
|
formattedDuration = null;
|
||||||
|
|
||||||
@Input() file;
|
@Input() file;
|
||||||
@@ -27,13 +24,7 @@ export class SubscriptionFileCardComponent implements OnInit {
|
|||||||
@Output() goToFileEmit = new EventEmitter<any>();
|
@Output() goToFileEmit = new EventEmitter<any>();
|
||||||
@Output() reloadSubscription = new EventEmitter<boolean>();
|
@Output() reloadSubscription = new EventEmitter<boolean>();
|
||||||
|
|
||||||
constructor(private snackBar: MatSnackBar, private postsService: PostsService, private dialog: MatDialog) {
|
constructor(private snackBar: MatSnackBar, private postsService: PostsService, private dialog: MatDialog) {}
|
||||||
this.scrollSubject = new Subject();
|
|
||||||
this.scrollAndLoad = Observable.merge(
|
|
||||||
Observable.fromEvent(window, 'scroll'),
|
|
||||||
this.scrollSubject
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
if (this.file.duration) {
|
if (this.file.duration) {
|
||||||
@@ -45,10 +36,6 @@ export class SubscriptionFileCardComponent implements OnInit {
|
|||||||
this.image_errored = true;
|
this.image_errored = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
onHoverResponse() {
|
|
||||||
this.scrollSubject.next();
|
|
||||||
}
|
|
||||||
|
|
||||||
imageLoaded(loaded) {
|
imageLoaded(loaded) {
|
||||||
this.image_loaded = true;
|
this.image_loaded = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user