phone step langauge

This commit is contained in:
Pete Matsyburka
2024-04-23 21:33:40 +03:00
parent 7a2d1fc6c5
commit aeec0cbf8e
3 changed files with 20 additions and 0 deletions
+1
View File
@@ -360,6 +360,7 @@
:key="currentField.uuid"
v-model="values[currentField.uuid]"
:field="currentField"
:locale="language?.toLowerCase() || browserLanguage"
:show-field-names="showFieldNames"
:verified-value="phoneVerifiedValues[currentField.uuid]"
:default-value="submitter.phone"
@@ -117,6 +117,11 @@ export default {
type: String,
required: true
},
locale: {
type: String,
required: false,
default: 'en'
},
showFieldNames: {
type: Boolean,
required: false,
@@ -163,6 +168,7 @@ export default {
method: 'POST',
body: JSON.stringify({
submitter_slug: this.submitterSlug,
locale: this.locale,
phone: this.$refs.phone.value
}),
headers: { 'Content-Type': 'application/json' }