diff --git a/src/app/admin/manage-library/manage-library.component.html b/src/app/admin/manage-library/manage-library.component.html
index 41ba16cc1..407230916 100644
--- a/src/app/admin/manage-library/manage-library.component.html
+++ b/src/app/admin/manage-library/manage-library.component.html
@@ -5,18 +5,15 @@
-
-
{{library.name | titlecase}}
+
-
-
diff --git a/src/app/admin/manage-library/manage-library.component.ts b/src/app/admin/manage-library/manage-library.component.ts
index f9cc8aca0..32789ef7e 100644
--- a/src/app/admin/manage-library/manage-library.component.ts
+++ b/src/app/admin/manage-library/manage-library.component.ts
@@ -1,5 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
+import { ToastrService } from 'ngx-toastr';
import { Library } from 'src/app/_models/library';
import { LibraryService } from 'src/app/_services/library.service';
import { DirectoryPickerComponent, DirectoryPickerResult } from '../_modals/directory-picker/directory-picker.component';
@@ -15,7 +16,7 @@ export class ManageLibraryComponent implements OnInit {
libraries: Library[] = [];
createLibraryToggle = false;
- constructor(private modalService: NgbModal, private libraryService: LibraryService) { }
+ constructor(private modalService: NgbModal, private libraryService: LibraryService, private toastr: ToastrService) { }
ngOnInit(): void {
@@ -57,4 +58,10 @@ export class ManageLibraryComponent implements OnInit {
}
}
+ scanLibrary(library: Library) {
+ this.libraryService.scan(library.id).subscribe(() => {
+ this.toastr.success('A scan has been queued for ' + library.name);
+ });
+ }
+
}