🥅 Adds an option to surpress widget errors

This commit is contained in:
Alicia Sykes
2022-06-09 01:26:45 +01:00
parent 9faab35a57
commit 2ef5b66e9e
3 changed files with 21 additions and 2 deletions

View File

@@ -74,7 +74,9 @@ const WidgetMixin = {
/* Called when an error occurs. Logs to handler, and passes to parent component */
error(msg, stackTrace) {
ErrorHandler(msg, stackTrace);
this.$emit('error', msg);
if (!this.options.ignoreErrors) {
this.$emit('error', msg);
}
},
/* When a data request update starts, show loader */
startLoading() {