Don't merge categories on manual edit
This commit is contained in:
+2
-2
@@ -149,7 +149,7 @@ export class MetadataEditorComponent implements OnInit {
|
||||
}
|
||||
|
||||
onSave(): void {
|
||||
this.bookService.updateBookMetadata(this.currentBookId, this.buildMetadata()).subscribe({
|
||||
this.bookService.updateBookMetadata(this.currentBookId, this.buildMetadata(), false).subscribe({
|
||||
next: (response) => {
|
||||
this.messageService.add({severity: 'info', summary: 'Success', detail: 'Book metadata updated'});
|
||||
this.metadataCenterService.emit(response);
|
||||
@@ -236,7 +236,7 @@ export class MetadataEditorComponent implements OnInit {
|
||||
}
|
||||
|
||||
private updateMetadata(): void {
|
||||
this.bookService.updateBookMetadata(this.currentBookId, this.buildMetadata()).subscribe({
|
||||
this.bookService.updateBookMetadata(this.currentBookId, this.buildMetadata(), false).subscribe({
|
||||
next: (response) => {
|
||||
this.metadataCenterService.emit(response);
|
||||
},
|
||||
|
||||
+2
-2
@@ -170,7 +170,7 @@ export class MetadataPickerComponent implements OnInit {
|
||||
|
||||
onSave(): void {
|
||||
const updatedBookMetadata = this.buildMetadata();
|
||||
this.bookService.updateBookMetadata(this.currentBookId, updatedBookMetadata).subscribe({
|
||||
this.bookService.updateBookMetadata(this.currentBookId, updatedBookMetadata, false).subscribe({
|
||||
next: (bookMetadata) => {
|
||||
Object.keys(this.copiedFields).forEach((field) => {
|
||||
if (this.copiedFields[field]) {
|
||||
@@ -237,7 +237,7 @@ export class MetadataPickerComponent implements OnInit {
|
||||
}
|
||||
|
||||
private updateMetadata(): void {
|
||||
this.bookService.updateBookMetadata(this.currentBookId, this.buildMetadata()).subscribe({
|
||||
this.bookService.updateBookMetadata(this.currentBookId, this.buildMetadata(), false).subscribe({
|
||||
next: (response) => {
|
||||
this.metadataCenterService.emit(response);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user