|
|
@ -88,6 +88,7 @@ export class EditCategoryDialogComponent implements OnInit {
|
|
|
|
this.postsService.updateCategory(this.category).subscribe(res => {
|
|
|
|
this.postsService.updateCategory(this.category).subscribe(res => {
|
|
|
|
this.updating = false;
|
|
|
|
this.updating = false;
|
|
|
|
this.original_category = JSON.parse(JSON.stringify(this.category));
|
|
|
|
this.original_category = JSON.parse(JSON.stringify(this.category));
|
|
|
|
|
|
|
|
this.postsService.reloadCategories();
|
|
|
|
}, err => {
|
|
|
|
}, err => {
|
|
|
|
this.updating = false;
|
|
|
|
this.updating = false;
|
|
|
|
console.error(err);
|
|
|
|
console.error(err);
|
|
|
|