mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
Update error to use translatable text
This commit is contained in:
@@ -90,7 +90,7 @@ Module.register("newsfeed", {
|
||||
this.loaded = true;
|
||||
this.error = null;
|
||||
} else if (notification === "INCORRECT_URL") {
|
||||
this.error = "Newsfeed Error. Incorrect url: " + payload.url;
|
||||
this.error = `Incorrect url: ${payload.url}`;
|
||||
this.scheduleUpdateInterval();
|
||||
}
|
||||
},
|
||||
|
@@ -23,7 +23,7 @@
|
||||
</div>
|
||||
{% elseif error %}
|
||||
<div class="small dimmed">
|
||||
{{ error }}
|
||||
{{ "MODULE_CONFIG_ERROR" | translate({MODULE_NAME: "Newsfeed", ERROR: error}) | safe }}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="small dimmed">
|
||||
|
@@ -38,7 +38,7 @@ module.exports = NodeHelper.create({
|
||||
try {
|
||||
new URL(url);
|
||||
} catch (error) {
|
||||
this.sendSocketNotification("INCORRECT_URL", { url });
|
||||
this.sendSocketNotification("INCORRECT_URL", { url: url });
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user