add name and phone to submitter details

This commit is contained in:
Alex Turchyn
2023-09-03 14:05:31 +03:00
parent b1b46cf998
commit a80e20234f
41 changed files with 575 additions and 343 deletions
+6 -7
View File
@@ -294,7 +294,7 @@
v-else
:is-demo="isDemo"
:with-confetti="withConfetti"
:can-send-email="canSendEmail"
:can-send-email="canSendEmail && submitter.email"
:submitter-slug="submitterSlug"
/>
<div class="flex justify-center">
@@ -343,8 +343,8 @@ export default {
}
},
props: {
submitterSlug: {
type: String,
submitter: {
type: Object,
required: true
},
canSendEmail: {
@@ -352,10 +352,6 @@ export default {
required: false,
default: false
},
submitterUuid: {
type: String,
required: true
},
attachments: {
type: Array,
required: false,
@@ -414,6 +410,9 @@ export default {
currentStepFields () {
return this.stepFields[this.currentStep]
},
submitterSlug () {
return this.submitter.slug
},
isAnonymousChecboxes () {
return this.currentField.type === 'checkbox' && this.currentStepFields.every((e) => !e.name) && this.currentStepFields.length > 4
},