Unified file card now supports playlists

Added custom playlists component

Removed legacy file manager from home screen
This commit is contained in:
Isaac Abadi
2020-08-09 19:24:29 -04:00
parent fcaf8b5a62
commit 1cdc1640ac
8 changed files with 200 additions and 26 deletions

View File

@@ -19,10 +19,12 @@ export class UnifiedFileCardComponent implements OnInit {
@Input() file_obj = null;
@Input() card_size = 'medium';
@Input() use_youtubedl_archive = false;
@Input() is_playlist = false;
@Input() index: number;
@Output() goToFile = new EventEmitter<any>();
@Output() goToSubscription = new EventEmitter<any>();
@Output() deleteFile = new EventEmitter<any>();
@Output() editPlaylist = new EventEmitter<any>();
/*
Planned sizes:
@@ -62,6 +64,13 @@ export class UnifiedFileCardComponent implements OnInit {
})
}
emitEditPlaylist() {
this.editPlaylist.emit({
playlist: this.file_obj,
index: this.index
});
}
}
function fancyTimeFormat(time) {