Subscriptions are now reloaded on subscribe/unsubscribe in PostsService

This commit is contained in:
Tzahi12345
2020-08-24 05:11:56 -04:00
parent d7f04fc90a
commit aa0558b770
3 changed files with 9 additions and 3 deletions

View File

@@ -80,6 +80,7 @@ export class SubscriptionsComponent implements OnInit {
} else {
this.channel_subscriptions.push(result);
}
this.postsService.reloadSubscriptions();
}
});
}
@@ -96,6 +97,7 @@ export class SubscriptionsComponent implements OnInit {
if (success) {
this.openSnackBar(`${sub.name} successfully deleted!`)
this.getSubscriptions();
this.postsService.reloadSubscriptions();
}
})
}