Remove unused methods
This commit is contained in:
-9
@@ -51,7 +51,6 @@ export class MetadataPickerComponent implements OnInit {
|
|||||||
{label: 'Pages', controlName: 'pageCount', lockedKey: 'pageCountLocked', fetchedKey: 'pageCount'}
|
{label: 'Pages', controlName: 'pageCount', lockedKey: 'pageCountLocked', fetchedKey: 'pageCount'}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
@Input() fetchedMetadata!: BookMetadata;
|
@Input() fetchedMetadata!: BookMetadata;
|
||||||
@Output() goBack = new EventEmitter<boolean>();
|
@Output() goBack = new EventEmitter<boolean>();
|
||||||
|
|
||||||
@@ -169,14 +168,6 @@ export class MetadataPickerComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchedAuthorsString(): string {
|
|
||||||
return this.fetchedMetadata.authors ? this.fetchedMetadata.authors.join(', ') : '';
|
|
||||||
}
|
|
||||||
|
|
||||||
fetchedCategoriesString(): string {
|
|
||||||
return this.fetchedMetadata.categories ? this.fetchedMetadata.categories.join(', ') : '';
|
|
||||||
}
|
|
||||||
|
|
||||||
onSave(): void {
|
onSave(): void {
|
||||||
const updatedBookMetadata = this.buildMetadata();
|
const updatedBookMetadata = this.buildMetadata();
|
||||||
this.bookService.updateBookMetadata(this.currentBookId, updatedBookMetadata).subscribe({
|
this.bookService.updateBookMetadata(this.currentBookId, updatedBookMetadata).subscribe({
|
||||||
|
|||||||
Reference in New Issue
Block a user