feature: add logfile paths to "connection failed" dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
1 parent
01aa9e12e4
commit
cc010354ca
3 files changed
+11
-4
No files matched your search
@@ -23,6 +23,12 @@
|
||||
<div class="text-center">
|
||||
<v-btn @click="reconnect" color="primary">{{ $t("ConnectionDialog.TryAgain") }}</v-btn>
|
||||
</div>
|
||||
<v-divider class="mt-5 mb-3"></v-divider>
|
||||
<p>{{ $t("ConnectionDialog.CheckMoonrakerLog") }}</p>
|
||||
<ul>
|
||||
<li>~/klipper_logs/moonraker.log</li>
|
||||
<li>/tmp/moonraker.log</li>
|
||||
</ul>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
|
||||
+4
-3
@@ -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",
|
||||
|
||||
@@ -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 = []
|
||||
|
||||
Reference in new issue
Block a user