add pdf generation
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
<template>
|
||||
<div
|
||||
class="flex cursor-pointer bg-red-100 absolute"
|
||||
class="flex cursor-pointer bg-red-100 bg-opacity-60 absolute"
|
||||
:style="computedStyle"
|
||||
>
|
||||
<img
|
||||
v-if="field.type === 'image' && image"
|
||||
class="object-contain"
|
||||
:src="image.url"
|
||||
>
|
||||
<img
|
||||
v-else-if="field.type === 'signature' && signature"
|
||||
class="object-contain"
|
||||
:src="signature.url"
|
||||
>
|
||||
<div v-else-if="field.type === 'attachment'">
|
||||
|
||||
@@ -83,7 +83,7 @@ export default {
|
||||
body: JSON.stringify({
|
||||
submission_slug: this.submissionSlug,
|
||||
blob_signed_id: data.signed_id,
|
||||
name: 'signatures'
|
||||
name: 'attachments'
|
||||
}),
|
||||
headers: { 'Content-Type': 'application/json' }
|
||||
}).then((resp) => resp.json()).then((attachment) => {
|
||||
|
||||
Reference in New Issue
Block a user