Saving a category will now cause the UI to refresh the cache of categories

categories
Isaac Abadi 5 years ago
parent 6ea4176d63
commit 1ce85813fb

@ -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);

Loading…
Cancel
Save