mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-18 23:31:30 +03:00
Saving a category will now cause the UI to refresh the cache of categories
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user