Skip to content

Commit 9046532

Browse files
author
Luc
committed
Fix crash when try to login thanks @Legsmaniac
add some console log
1 parent b2da726 commit 9046532

File tree

7 files changed

+9
-7
lines changed

7 files changed

+9
-7
lines changed

dist/grbl/debug/index.html.gz

11 Bytes
Binary file not shown.

dist/grbl/production/index.html.gz

-7 Bytes
Binary file not shown.

dist/printer/debug/index.html.gz

11 Bytes
Binary file not shown.
-8 Bytes
Binary file not shown.

src/components/dialog/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ let timeouthandle
4343
*
4444
*/
4545
function goLogIn() {
46+
console.log("Go login");
4647
hideDialog()
4748
SubmitCredentials(loginvalue, passwordvalue)
4849
passwordvalue = ""
@@ -353,9 +354,9 @@ const DialogPage = () => {
353354
)
354355
btn1Txt = T("S148")
355356
if (!btn1Col) btn1Col = "btn-secondary"
356-
btn21Txt = T("S28")
357-
dialogData.next = goLogIn
358-
dialogData.next2 = disconnectPage
357+
btn2Txt = T("S28")
358+
btn1Fn= goLogIn
359+
btn2Fn= disconnectPage
359360
break
360361
case "message":
361362
if (!iconTitle) iconTitle = <Info color="blue" />

src/components/http/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function requestAuthentication() {
121121
* Go to next command in queries list
122122
*/
123123
function nextCommand() {
124-
console.log("pop " + httpCommandList[0].uri)
124+
console.log("pop Uri")
125125
httpCommandList.shift()
126126
isProcessingHttpCommand = false
127127
pausePing(false)
@@ -244,6 +244,7 @@ function SendPostHttp(
244244
* Send login credentials
245245
*/
246246
function SubmitCredentials(login, password, newpassword, timeout) {
247+
console.log("Submit credentials");
247248
let url = "/login"
248249
let formData = new FormData()
249250

@@ -262,7 +263,7 @@ function SubmitCredentials(login, password, newpassword, timeout) {
262263
} else {
263264
formData.append("DISCONNECT", "yes")
264265
}
265-
266+
console.log(formData);
266267
var cmd = {
267268
uri: url,
268269
type: "POST",
@@ -305,7 +306,7 @@ function processCommands() {
305306
}
306307
if (isdownload) currentHttpCommand.responseType = "blob"
307308
currentHttpCommand.onerror = function() {
308-
console.log("Failing HTTP request " + httpCommandList[0].uri)
309+
console.log("Failing HTTP request " + (httpCommandList[0].uri)?httpCommandList[0].uri:" Uri")
309310
disconnectWsServer({
310311
type: "disconnect",
311312
numError: 1,

src/components/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
*/
2020
import { h } from "preact"
2121

22-
export const Esp3dVersion = () => <span>3.0.0.81</span>
22+
export const Esp3dVersion = () => <span>3.0.0.82</span>

0 commit comments

Comments
 (0)