mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 04:45:17 +00:00
Refaktor calendar error once again for better messaging to the user
This commit is contained in:
@@ -146,12 +146,9 @@ Module.register("calendar", {
|
||||
this.broadcastEvents();
|
||||
}
|
||||
}
|
||||
} else if (notification === "FETCH_ERROR") {
|
||||
} else if (notification === "CALENDAR_ERROR") {
|
||||
this.error = this.translate("MODULE_CONFIG_ERROR", { MODULE_NAME: this.name, ERROR: payload.error });
|
||||
this.loaded = true;
|
||||
} else if (notification === "INCORRECT_URL") {
|
||||
this.error = `Incorrect url: ${payload.url}`;
|
||||
this.loaded = true;
|
||||
}
|
||||
|
||||
this.updateDom(this.config.animationSpeed);
|
||||
|
Reference in New Issue
Block a user