summaryrefslogtreecommitdiffhomepage
path: root/main.mjs
diff options
context:
space:
mode:
authorLi Zhineng <[email protected]>2025-07-11 21:24:06 +0800
committerLi Zhineng <[email protected]>2025-07-11 21:24:06 +0800
commit36dc45faca21be3507b2690828d538d7a75ac469 (patch)
tree979acfeb1d26752514a75edae4421b0814db8148 /main.mjs
parent4ba55c31c693b26c630a245b845cd4e85de6b639 (diff)
downloadsetup-36dc45faca21be3507b2690828d538d7a75ac469.tar.gz
setup-36dc45faca21be3507b2690828d538d7a75ac469.zip
rename
Diffstat (limited to 'main.mjs')
-rw-r--r--main.mjs8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.mjs b/main.mjs
index 56862f4..3c4d6b4 100644
--- a/main.mjs
+++ b/main.mjs
@@ -243,7 +243,7 @@ class ProgressibleForm extends Form {
return this
}
- nextForm() {
+ transitToNextForm() {
if (this.#nextForm === null) {
return
}
@@ -261,7 +261,7 @@ class WelcomeForm extends ProgressibleForm {
handleSubmit(event) {
event.preventDefault()
- this.nextForm()
+ this.transitToNextForm()
}
}
@@ -281,7 +281,7 @@ class WifiCredentialsForm extends ProgressibleForm {
if (this.#submitCallback) {
this.#submitCallback({ ssid, password })
}
- this.nextForm()
+ this.transitToNextForm()
} catch (error) {
this.alert(error.message)
}
@@ -331,7 +331,7 @@ class PairingActivationForm extends ProgressibleForm {
handleSubmit(event) {
event.preventDefault()
- this.nextForm()
+ this.transitToNextForm()
}
}