fix verification step
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
<MarkdownContent :string="field.description" />
|
<MarkdownContent :string="field.description" />
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="emptyValueRequiredStep && emptyValueRequiredStep[0] !== field"
|
v-if="isRequiredFieldEmpty"
|
||||||
class="px-1 field-description-text"
|
class="px-1 field-description-text"
|
||||||
>
|
>
|
||||||
{{ t('complete_all_required_fields_to_proceed_with_identity_verification') }}
|
{{ t('complete_all_required_fields_to_proceed_with_identity_verification') }}
|
||||||
@@ -100,6 +100,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
isRequiredFieldEmpty () {
|
||||||
|
return this.emptyValueRequiredStep && this.emptyValueRequiredStep[0] !== this.field
|
||||||
|
},
|
||||||
countryCode () {
|
countryCode () {
|
||||||
const browserTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone
|
const browserTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone
|
||||||
const browserTz = browserTimeZone.split('/')[1]
|
const browserTz = browserTimeZone.split('/')[1]
|
||||||
@@ -131,17 +134,19 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted () {
|
async mounted () {
|
||||||
this.isLoading = true
|
if (!this.isRequiredFieldEmpty) {
|
||||||
|
this.isLoading = true
|
||||||
|
|
||||||
if (new URLSearchParams(window.location.search).get('submit') === 'true') {
|
if (new URLSearchParams(window.location.search).get('submit') === 'true') {
|
||||||
this.$emit('submit')
|
this.$emit('submit')
|
||||||
} else {
|
} else {
|
||||||
Promise.all([
|
Promise.all([
|
||||||
import('@eid-easy/eideasy-widget'),
|
import('@eid-easy/eideasy-widget'),
|
||||||
this.start()
|
this.start()
|
||||||
]).finally(() => {
|
]).finally(() => {
|
||||||
this.isLoading = false
|
this.isLoading = false
|
||||||
})
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -170,7 +175,7 @@ export default {
|
|||||||
redirectUrl.searchParams.append('lang', this.locale)
|
redirectUrl.searchParams.append('lang', this.locale)
|
||||||
|
|
||||||
this.redirectUrl = redirectUrl.toString()
|
this.redirectUrl = redirectUrl.toString()
|
||||||
} else {
|
} else if (this.$refs.widgetContainer) {
|
||||||
const eidEasyWidget = document.createElement('eideasy-widget')
|
const eidEasyWidget = document.createElement('eideasy-widget')
|
||||||
|
|
||||||
for (const key in this.widgetSettings) {
|
for (const key in this.widgetSettings) {
|
||||||
|
|||||||
Reference in New Issue
Block a user