|
|
|
@ -20,6 +20,7 @@ export class FileCardComponent implements OnInit {
|
|
|
|
@Input() isPlaylist = false;
|
|
|
|
@Input() isPlaylist = false;
|
|
|
|
@Input() count = null;
|
|
|
|
@Input() count = null;
|
|
|
|
type;
|
|
|
|
type;
|
|
|
|
|
|
|
|
image_loaded = false;
|
|
|
|
|
|
|
|
|
|
|
|
constructor(private postsService: PostsService, public snackBar: MatSnackBar, public mainComponent: MainComponent) { }
|
|
|
|
constructor(private postsService: PostsService, public snackBar: MatSnackBar, public mainComponent: MainComponent) { }
|
|
|
|
|
|
|
|
|
|
|
|
@ -43,6 +44,10 @@ export class FileCardComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
imageLoaded(loaded) {
|
|
|
|
|
|
|
|
this.image_loaded = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public openSnackBar(message: string, action: string) {
|
|
|
|
public openSnackBar(message: string, action: string) {
|
|
|
|
this.snackBar.open(message, action, {
|
|
|
|
this.snackBar.open(message, action, {
|
|
|
|
duration: 2000,
|
|
|
|
duration: 2000,
|
|
|
|
|