allow to disable text signature via account prefs

This commit is contained in:
Pete Matsyburka
2023-12-02 16:26:34 +02:00
parent 489f9859be
commit c5d71505ef
12 changed files with 98 additions and 38 deletions
+1
View File
@@ -17,6 +17,7 @@ window.customElements.define('submission-form', class extends HTMLElement {
isDemo: this.dataset.isDemo === 'true',
attribution: this.dataset.attribution !== 'false',
withConfetti: true,
withTypedSignature: this.dataset.withTypedSignature !== 'false',
values: reactive(JSON.parse(this.dataset.values)),
completedButton: JSON.parse(this.dataset.completedButton),
attachments: reactive(JSON.parse(this.dataset.attachments)),
+6
View File
@@ -223,6 +223,7 @@
:field="currentField"
:previous-value="previousSignatureValue"
:is-direct-upload="isDirectUpload"
:with-typed-signature="withTypedSignature"
:attachments-index="attachmentsIndex"
:submitter-slug="submitterSlug"
@attached="attachments.push($event)"
@@ -386,6 +387,11 @@ export default {
required: false,
default: false
},
withTypedSignature: {
type: Boolean,
required: false,
default: true
},
baseUrl: {
type: String,
required: false,
@@ -23,7 +23,7 @@
</a>
</span>
<span
v-else
v-else-if="withTypedSignature"
class="tooltip"
:data-tip="t('type_text')"
>
@@ -149,6 +149,11 @@ export default {
required: true,
default: false
},
withTypedSignature: {
type: Boolean,
required: false,
default: true
},
attachmentsIndex: {
type: Object,
required: false,