diff --git a/app/javascript/submission_form/completed.vue b/app/javascript/submission_form/completed.vue index 809ae3b6e..d44f9d2e6 100644 --- a/app/javascript/submission_form/completed.vue +++ b/app/javascript/submission_form/completed.vue @@ -126,7 +126,7 @@ export default { IconLogin, IconDownload }, - inject: ['baseUrl', 't', 'nativePlatform'], + inject: ['baseUrl', 't'], props: { submitterSlug: { type: String, @@ -186,6 +186,11 @@ export default { type: Object, required: false, default: () => ({}) + }, + nativePlatform: { + type: String, + required: false, + default: '' } }, data () { diff --git a/app/javascript/submission_form/form.vue b/app/javascript/submission_form/form.vue index e46a9bdf5..0bb530634 100644 --- a/app/javascript/submission_form/form.vue +++ b/app/javascript/submission_form/form.vue @@ -503,6 +503,7 @@ :with-qr-button="withQrButton" :submitter="submitter" :show-field-names="showFieldNames" + :native-platform="nativePlatform" @update:reason="values[currentField.preferences?.reason_field_uuid] = $event" @touch-attachment="attachmentsIndex[previousSignatureValue] ? attachmentsIndex[previousSignatureValue].created_at = new Date() : null" @attached="attachments.push($event)" @@ -521,6 +522,7 @@ :attachments-index="attachmentsIndex" :show-field-names="showFieldNames" :submitter-slug="submitterSlug" + :native-platform="nativePlatform" @attached="attachments.push($event)" @start="scrollIntoField(currentField)" @focus="scrollIntoField(currentField)" @@ -652,6 +654,7 @@ :with-confetti="withConfetti" :can-send-email="canSendEmail && !!submitter.email" :submitter-slug="submitterSlug" + :native-platform="nativePlatform" />