diff --git a/src/app/components/recent-videos/recent-videos.component.html b/src/app/components/recent-videos/recent-videos.component.html
index f530163..ec4616c 100644
--- a/src/app/components/recent-videos/recent-videos.component.html
+++ b/src/app/components/recent-videos/recent-videos.component.html
@@ -34,6 +34,9 @@
+
+ No videos found.
+
0">
@@ -43,7 +46,7 @@
- 0" (page)="pageChangeEvent($event)" [length]="100"
+ 0" (page)="pageChangeEvent($event)" [length]="filtered_files.length"
[pageSize]="pageSize"
[pageSizeOptions]="[5, 10, 25, 100, this.paged_data && this.paged_data.length > 100 ? this.paged_data.length : 250]">
diff --git a/src/app/components/recent-videos/recent-videos.component.scss b/src/app/components/recent-videos/recent-videos.component.scss
index 5530225..49023ec 100644
--- a/src/app/components/recent-videos/recent-videos.component.scss
+++ b/src/app/components/recent-videos/recent-videos.component.scss
@@ -47,6 +47,10 @@
top: 10px;
}
+.paginator {
+ margin-top: 5px;
+}
+
.my-videos-title {
text-align: center;
position: relative;
diff --git a/src/app/main/main.component.ts b/src/app/main/main.component.ts
index e6cfe48..013d0f3 100644
--- a/src/app/main/main.component.ts
+++ b/src/app/main/main.component.ts
@@ -1,19 +1,11 @@
import { Component, OnInit, ElementRef, ViewChild, ViewChildren, QueryList } from '@angular/core';
import {PostsService} from '../posts.services';
import {FileCardComponent} from '../file-card/file-card.component';
-import { Observable } from 'rxjs/Observable';
+import { Observable } from 'rxjs';
import {FormControl, Validators} from '@angular/forms';
import { MatDialog } from '@angular/material/dialog';
import { MatSnackBar } from '@angular/material/snack-bar';
import { saveAs } from 'file-saver';
-import 'rxjs/add/observable/of';
-import 'rxjs/add/operator/mapTo';
-import 'rxjs/add/operator/toPromise';
-import 'rxjs/add/observable/fromEvent'
-import 'rxjs/add/operator/filter'
-import 'rxjs/add/operator/debounceTime'
-import 'rxjs/add/operator/do'
-import 'rxjs/add/operator/switch'
import { YoutubeSearchService, Result } from '../youtube-search.service';
import { Router, ActivatedRoute } from '@angular/router';
import { CreatePlaylistComponent } from 'app/create-playlist/create-playlist.component';
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;
}