More signals

This commit is contained in:
aditya.chandel
2024-12-18 16:08:22 -07:00
parent 71f5927364
commit ce515649f6
14 changed files with 160 additions and 129 deletions
@@ -21,7 +21,7 @@ export class LibraryCreatorComponent {
public dialogService: DialogService,
private dynamicDialogRef: DynamicDialogRef,
private messageService: MessageService,
private libraryServiceV2: LibraryService,
private libraryService: LibraryService,
private router: Router,
) {
}
@@ -56,9 +56,8 @@ export class LibraryCreatorComponent {
name: this.value,
paths: this.folders,
};
this.libraryServiceV2.createLibrary(newLibrary).subscribe({
this.libraryService.createLibrary(newLibrary).subscribe({
next: (createdLibrary) => {
console.log('Library successfully created:', createdLibrary);
this.router.navigate(
['/library', createdLibrary.id, 'books'],
{queryParams: {watch: true}}