From 1ce85813fbe6f289d9f165991e9a748f5377cbe2 Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Sat, 24 Oct 2020 00:20:39 -0400 Subject: [PATCH] Saving a category will now cause the UI to refresh the cache of categories --- .../edit-category-dialog/edit-category-dialog.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/dialogs/edit-category-dialog/edit-category-dialog.component.ts b/src/app/dialogs/edit-category-dialog/edit-category-dialog.component.ts index 928ff1c..294414e 100644 --- a/src/app/dialogs/edit-category-dialog/edit-category-dialog.component.ts +++ b/src/app/dialogs/edit-category-dialog/edit-category-dialog.component.ts @@ -88,6 +88,7 @@ export class EditCategoryDialogComponent implements OnInit { this.postsService.updateCategory(this.category).subscribe(res => { this.updating = false; this.original_category = JSON.parse(JSON.stringify(this.category)); + this.postsService.reloadCategories(); }, err => { this.updating = false; console.error(err);