Refresh autocomplete data lists when book is saved (#1629)
This commit is contained in:
+5
@@ -209,6 +209,10 @@ export class MetadataEditorComponent implements OnInit {
|
|||||||
this.populateFormFromMetadata(metadata);
|
this.populateFormFromMetadata(metadata);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.prepareAutoComplete();
|
||||||
|
}
|
||||||
|
|
||||||
|
private prepareAutoComplete(): void {
|
||||||
this.bookService.bookState$
|
this.bookService.bookState$
|
||||||
.pipe(
|
.pipe(
|
||||||
filter((bookState) => bookState.loaded),
|
filter((bookState) => bookState.loaded),
|
||||||
@@ -388,6 +392,7 @@ export class MetadataEditorComponent implements OnInit {
|
|||||||
summary: "Success",
|
summary: "Success",
|
||||||
detail: "Book metadata updated",
|
detail: "Book metadata updated",
|
||||||
});
|
});
|
||||||
|
this.prepareAutoComplete();
|
||||||
},
|
},
|
||||||
error: (err) => {
|
error: (err) => {
|
||||||
this.isSaving = false;
|
this.isSaving = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user