Skip to content
Snippets Groups Projects
Verified Commit bdc36fda authored by Griefed's avatar Griefed :joystick:
Browse files

fix: Catch errors in web-UI

parent 1f837fb6
No related branches found
No related tags found
1 merge request!588Version 6
......@@ -71,6 +71,14 @@ export default defineComponent({
data: formattedData
}]
this.$refs.chart1.updateSeries(this.series, true);
}).catch(error => {
this.$q.notify({
timeout: 5000,
progress: true,
icon: 'error',
color: 'negative',
message: 'Could not retrieve data: ' + error
});
})
}
},
......
......@@ -116,6 +116,14 @@ export default defineComponent({
}
this.series = [freeSeries, usedSeries, usageSeries]
this.$refs.chart1.updateSeries(this.series, true);
}).catch(error => {
this.$q.notify({
timeout: 5000,
progress: true,
icon: 'error',
color: 'negative',
message: 'Could not retrieve data: ' + error
});
})
}
},
......
......@@ -80,6 +80,14 @@ export default defineComponent({
let data = response.data
this.series = [data.modPacks, data.serverPacks, data.runConfigurations]
this.$refs.chart1.updateSeries(this.series, true);
}).catch(error => {
this.$q.notify({
timeout: 5000,
progress: true,
icon: 'error',
color: 'negative',
message: 'Could not retrieve data: ' + error
});
})
}
},
......
......@@ -89,6 +89,14 @@ export default defineComponent({
series: series
})
}).catch(error => {
this.$q.notify({
timeout: 5000,
progress: true,
icon: 'error',
color: 'negative',
message: 'Could not retrieve data: ' + error
});
})
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment