diff --git a/src/components/ConnectingDialog.vue b/src/components/ConnectingDialog.vue index 58a52e0b..75997b7c 100644 --- a/src/components/ConnectingDialog.vue +++ b/src/components/ConnectingDialog.vue @@ -23,6 +23,12 @@
{{ $t("ConnectionDialog.TryAgain") }}
+ +

{{ $t("ConnectionDialog.CheckMoonrakerLog") }}

+ diff --git a/src/locales/en.json b/src/locales/en.json index 2a3afb68..39a78ff0 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -24,13 +24,14 @@ }, "ConnectionDialog": { "Connecting": "Connecting to {host}", - "Failed": "Connecting Failed to {host}", + "Failed": "Connecting failed", "CannotConnectTo": "Cannot connect to {host}.", - "TryAgain": "try again" + "TryAgain": "try again", + "CheckMoonrakerLog": "If this message appears repeatedly, please have a look in the log file located at:" }, "SelectPrinterDialog": { "Connecting": "Connecting to {host}", - "Failed": "Connecting Failed to {host}", + "Failed": "Connecting failed", "CannotConnectTo": "Cannot connect to {host}.", "TryAgain": "try again", "SelectPrinter": "Select Printer", diff --git a/src/plugins/wsClient.js b/src/plugins/wsClient.js index f599dd8f..2788130a 100644 --- a/src/plugins/wsClient.js +++ b/src/plugins/wsClient.js @@ -4,7 +4,7 @@ export default class WebSocketClient { this.instance = null this.url = url this.reconnects = 0 - this.maxReconnects = options.maxReconnects || 10 + this.maxReconnects = options.maxReconnects || 5 this.reconnectInterval = options.reconnectInterval || 1000 this.store = options.store this.wsData = []