Added support for navigating to files in recent videos (subscription and not). No support for download-only mode yet

Added navigate to subscription menu item for the files

Sidenav mode is "side" now for testing, likely not a permanent change and will be optional in the future
This commit is contained in:
Isaac Grynsztein
2020-07-18 20:37:43 -04:00
parent cc189a3abd
commit 8384b73c4c
8 changed files with 82 additions and 14 deletions

View File

@@ -46,8 +46,6 @@ export class AppComponent implements OnInit {
@ViewChild('hamburgerMenu', { read: ElementRef }) hamburgerMenuButton: ElementRef;
navigator: string = null;
subscriptions = null;
constructor(public postsService: PostsService, public snackBar: MatSnackBar, private dialog: MatDialog,
public router: Router, public overlayContainer: OverlayContainer, private elementRef: ElementRef) {
@@ -92,7 +90,7 @@ export class AppComponent implements OnInit {
// gets the subscriptions
if (this.allowSubscriptions) {
this.postsService.getAllSubscriptions().subscribe(res => {
this.subscriptions = res['subscriptions'];
this.postsService.subscriptions = res['subscriptions'];
})
}
}