feat: alert api error messages in feed and subscriptions

This commit is contained in:
Bnyro
2024-04-06 12:05:16 +02:00
parent 3335b142e0
commit 8548cf5a4d
3 changed files with 32 additions and 22 deletions

View File

@@ -143,6 +143,11 @@ export default {
},
mounted() {
this.fetchSubscriptions().then(json => {
if (json.error) {
alert(json.error);
return;
}
this.subscriptions = json;
this.subscriptions.forEach(subscription => (subscription.subscribed = true));
});