Skip to content

Commit

Permalink
fix: Update MQTT unavailable error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mman committed Oct 1, 2024
1 parent 2f52b9b commit 7e39e6d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useEffect, useRef, useState } from "react"
import { translate } from "react-i18nify"
import MqttSettingsGuide from "../../../images/mqtt-settings-v3.50.png"
import Button from "../Button"
import { AppViews, useAppViewsStore } from "../../../modules/AppViews"
import { useMqtt } from "@victronenergy/mfd-modules"
Expand Down Expand Up @@ -62,13 +61,8 @@ const MqttUnavailable = ({ host }: Props) => {
</Button>
</div>
<div>
<div className={"text-md mb-4"}>{translate("error.mqttUnavailable1")}</div>
<div className={"mt-2"}>{translate("error.mqttUnavailable2")}</div>
<div className={"mt-2 italic"}>{translate("error.mqttUnavailable3")}</div>
<div className={"mt-2"}>{translate("error.mqttUnavailable4")}</div>
<div className={"mt-4 text-center"}>
<img src={MqttSettingsGuide} alt={"MQTT Settings Guide"} className={"m-auto"} />
</div>
<div className={"text-md mb-4"}>{translate("error.wsMqttUnavailable1")}</div>
<div className={"mt-2"}>{translate("error.wsMqttUnavailable2")}</div>
</div>
</div>
</div>
Expand Down
Binary file removed src/app/Marine2/images/mqtt-settings-v2.42.png
Binary file not shown.
Binary file removed src/app/Marine2/images/mqtt-settings-v3.50.png
Binary file not shown.
7 changes: 2 additions & 5 deletions src/app/locales/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,8 @@
"sendReport": "Send error report",
"title": "An error occured while rendering the application."
},
"mqttUnavailable1": "Could not connect to the MQTT server.",
"mqttUnavailable2": "Please check that MQTT is enabled in your settings:",
"mqttUnavailable3": "Remote Console > Settings > Services > MQTT Access",
"mqttUnavailable4": "Try using the Remote Console button at the top of this screen to change your settings remotely.",
"mqttUnavailable5": "You can also try connecting to your device remotely by selecting Remote from the menu above.",
"wsMqttUnavailable1": "Could not connect to the GX device.",
"wsMqttUnavailable2": "GX Error #60.",
"queryParams": "Query params: %{queryParams}",
"remoteConsole": {
"connectionFailed": "Unable to connect to the GX device",
Expand Down

0 comments on commit 7e39e6d

Please sign in to comment.