Implemented the ability to choose a folder for a library. Implemented an admin landing page that will showcase the different management items.
This commit is contained in:
parent
e06e34083c
commit
2679a52aec
20 changed files with 305 additions and 17 deletions
|
|
@ -1,4 +1,7 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
import { take } from 'rxjs/operators';
|
||||
import { User } from '../_models/user';
|
||||
import { AccountService } from '../_services/account.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-library',
|
||||
|
|
@ -7,9 +10,14 @@ import { Component, OnInit } from '@angular/core';
|
|||
})
|
||||
export class LibraryComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
user: User | undefined;
|
||||
|
||||
constructor(public accountService: AccountService) { }
|
||||
|
||||
ngOnInit(): void {
|
||||
this.accountService.currentUser$.pipe(take(1)).subscribe(user => {
|
||||
this.user = user;
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue