Refactored the users component in admin to be manage-user and likewise added manage-library component.
This commit is contained in:
parent
2679a52aec
commit
ee7787c3c7
12 changed files with 74 additions and 56 deletions
30
src/app/admin/manage-library/manage-library.component.ts
Normal file
30
src/app/admin/manage-library/manage-library.component.ts
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
||||
import { DirectoryPickerComponent, DirectoryPickerResult } from 'src/app/directory-picker/directory-picker.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-manage-library',
|
||||
templateUrl: './manage-library.component.html',
|
||||
styleUrls: ['./manage-library.component.scss']
|
||||
})
|
||||
export class ManageLibraryComponent implements OnInit {
|
||||
|
||||
constructor(private modalService: NgbModal) { }
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
addFolder(library: string) {
|
||||
|
||||
const modalRef = this.modalService.open(DirectoryPickerComponent);
|
||||
//modalRef.componentInstance.name = 'World';
|
||||
modalRef.closed.subscribe((closeResult: DirectoryPickerResult) => {
|
||||
console.log('Closed Result', closeResult);
|
||||
if (closeResult.success) {
|
||||
console.log('Add folder path to Library');
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue