adjust demo

This commit is contained in:
Alex Turchyn
2023-07-12 01:24:25 +03:00
parent d595e7d52b
commit 4ffd198505
12 changed files with 93 additions and 20 deletions
+1
View File
@@ -14,6 +14,7 @@ window.customElements.define('submission-form', class extends HTMLElement {
authenticityToken: this.dataset.authenticityToken,
canSendEmail: this.dataset.canSendEmail === 'true',
isDirectUpload: this.dataset.isDirectUpload === 'true',
isDemo: this.dataset.isDemo === 'true',
values: reactive(JSON.parse(this.dataset.values)),
attachments: reactive(JSON.parse(this.dataset.attachments)),
fields: JSON.parse(this.dataset.fields)
+18 -1
View File
@@ -40,6 +40,17 @@
Download
</span>
</button>
<a
v-if="isDemo"
target="_blank"
href="https://github.com/docusealco/docuseal"
class="white-button flex items-center space-x-1 w-full"
>
<IconBrandGithub />
<span>
Star on Github
</span>
</a>
</div>
<div class="text-center mt-4">
Signed with
@@ -53,13 +64,14 @@
</template>
<script>
import { IconCircleCheck, IconMail, IconDownload, IconInnerShadowTop } from '@tabler/icons-vue'
import { IconCircleCheck, IconBrandGithub, IconMail, IconDownload, IconInnerShadowTop } from '@tabler/icons-vue'
export default {
name: 'FormCompleted',
components: {
IconCircleCheck,
IconInnerShadowTop,
IconBrandGithub,
IconMail,
IconDownload
},
@@ -68,6 +80,11 @@ export default {
type: String,
required: true
},
isDemo: {
type: Boolean,
required: false,
default: false
},
canSendEmail: {
type: Boolean,
required: false,
+6
View File
@@ -246,6 +246,7 @@
</form>
<FormCompleted
v-else
:is-demo="isDemo"
:can-send-email="canSendEmail"
:submitter-slug="submitterSlug"
/>
@@ -317,6 +318,11 @@ export default {
required: true,
default: false
},
isDemo: {
type: Boolean,
required: true,
default: false
},
values: {
type: Object,
required: false,