Alert for Draft Form (#180)

* Enable Pro plan - WIP

* no pricing page if have no paid plans

* Set pricing ids in env

* views & submissions FREE for all

* extra param for env

* form password FREE for all

* Custom Code is PRO feature

* Replace codeinput prism with codemirror

* Better form Cleaning message

* Added risky user email spam protection

* fix form cleaning

* Custom SEO

* fix custom seo formcleaner

* Better webhooks

* Slack-Discord extra feature

* Alert for Draft Form/View
This commit is contained in:
formsdev
2023-08-31 14:26:14 +05:30
committed by GitHub
parent 662088e20f
commit c0a8f0d2bd
7 changed files with 43 additions and 25 deletions

View File

@@ -29,6 +29,10 @@ export default {
type: String,
required: true
},
isDraft: {
type: Boolean,
default: false
},
},
data() {
@@ -50,7 +54,8 @@ export default {
el.select()
document.execCommand('copy')
document.body.removeChild(el)
this.alertSuccess('Copied!')
this.alertSuccess((this.isDraft) ? 'Copied! But other people won\'t be able to see the form since it\'s currently in draft mode' : 'Copied!')
}
}
}

View File

@@ -3,7 +3,7 @@
<h3 class="font-semibold text-xl">Share Link</h3>
<p>Your form is now published and ready to be shared with the world! Copy this link to share your form
on social media, messaging apps or via email.</p>
<copy-content :content="share_url">
<copy-content :content="share_url" :is-draft="form.visibility=='draft'">
<template #icon>
<svg class="h-4 w-4 -mt-1 text-blue-600 inline mr-1" viewBox="0 0 20 10" fill="none"
xmlns="http://www.w3.org/2000/svg">