@pocketprep/ui-kit 3.0.20 → 3.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
}"
|
|
29
29
|
:disabled="modelValue.length !== 6 || isLoading"
|
|
30
30
|
:autofocus="modelValue.length === 6"
|
|
31
|
+
:isLoading="isLoading"
|
|
31
32
|
@click="submitSignIn"
|
|
32
33
|
>
|
|
33
34
|
Sign In
|
|
@@ -60,6 +61,7 @@ import MagicCodeEntry from '../Onboarding/MagicCodeEntry.vue'
|
|
|
60
61
|
})
|
|
61
62
|
export default class EmailAuth extends Vue {
|
|
62
63
|
@Prop({ default: '' }) parentError!: string
|
|
64
|
+
@Prop({ default: false }) parentIsLoading!: boolean
|
|
63
65
|
@Prop() email!: string
|
|
64
66
|
@Prop({ default: '' }) modelValue!: string
|
|
65
67
|
|
|
@@ -75,6 +77,13 @@ export default class EmailAuth extends Vue {
|
|
|
75
77
|
}
|
|
76
78
|
}
|
|
77
79
|
|
|
80
|
+
@Watch('parentIsLoading')
|
|
81
|
+
parentIsLoadingChanged (newVal: boolean, oldVal: boolean) {
|
|
82
|
+
if (newVal !== oldVal) {
|
|
83
|
+
this.isLoading = newVal
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
78
87
|
async submitSignIn () {
|
|
79
88
|
this.isLoading = true
|
|
80
89
|
this.errorMessage = ''
|