From 34ab23273795b06c326877f624fa17363ad3ecc4 Mon Sep 17 00:00:00 2001 From: Mayank Date: Sat, 1 Feb 2020 18:09:10 +0530 Subject: [PATCH] rearranging onboarding flow --- src/views/Home.vue | 74 +++++++++++++++++++++++----------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index 6b6217d..2819bef 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -16,23 +16,7 @@ autofocus > - - - - - + + + + + @@ -61,7 +61,7 @@ variant="success" size="lg" @click="nextStep" - v-if="onboardingStep !== 4 && onboardingStep !== 6" + v-if="onboardingStep !== 2 && onboardingStep !== 6" :disabled="!isStepValid" class="mt-3 px-4" >{{ onboardingStep === 0 ? 'Start' : 'Next' }} @@ -106,6 +106,14 @@ const onboardingSteps = [ text: "Your name stays on your Umbrel Node and is never shared with a 3rd party." }, + { + heading: "connect umbrel to wifi", + text: "" + }, + { + heading: "enter wifi password", + text: "" + }, { heading: "set your password", text: @@ -116,14 +124,6 @@ const onboardingSteps = [ text: "You'll need this password to securely access your Umbrel Node from anywhere." }, - { - heading: "connect umbrel to wifi", - text: "" - }, - { - heading: "enter wifi password", - text: "" - }, { heading: "that's it!", text: @@ -197,26 +197,26 @@ export default { } if (onboardingStep === 2) { - // if (this.password.length < 6) { - // return false; - // } - return this.password.length; + if (this.selectedWifi === "") { + return false; + } } if (onboardingStep === 3) { - if (this.confirmPassword !== this.password) { - return false; - } + return !!this.wifiPassword; } if (onboardingStep === 4) { - if (this.selectedWifi === "") { - return false; - } + // if (this.password.length < 6) { + // return false; + // } + return this.password.length; } if (onboardingStep === 5) { - return !!this.wifiPassword; + if (this.confirmPassword !== this.password) { + return false; + } } return true;