mirror of
https://github.com/TeamPiped/Piped.git
synced 2026-05-04 06:27:49 +00:00
feat: alert api error messages in feed and subscriptions
This commit is contained in:
@@ -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));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user