allow to draw signature on mobile

This commit is contained in:
Pete Matsyburka
2024-06-02 14:50:37 +03:00
parent 91f3d8ed7e
commit f6c061a57b
12 changed files with 374 additions and 11 deletions
+7 -1
View File
@@ -326,6 +326,7 @@
:attachments-index="attachmentsIndex"
:button-text="buttonText"
:with-disclosure="withDisclosure"
:with-qr-button="withQrButton"
:submitter-slug="submitterSlug"
:show-field-names="showFieldNames"
@attached="attachments.push($event)"
@@ -384,7 +385,7 @@
</div>
<div
v-if="currentField.type !== 'payment' || submittedValues[currentField.uuid]"
:class="withDisclosure && currentField.type === 'signature' ? 'mt-2' : 'mt-6 md:mt-8'"
:class="currentField.type === 'signature' ? 'mt-2' : 'mt-6 md:mt-8'"
>
<button
id="submit_form_button"
@@ -578,6 +579,11 @@ export default {
required: false,
default: true
},
withQrButton: {
type: Boolean,
required: false,
default: false
},
withTypedSignature: {
type: Boolean,
required: false,