Replace old crisp mentions
This commit is contained in:
parent
2b2f6aa462
commit
73ee9a0bf9
|
@ -20,7 +20,7 @@
|
||||||
Templates
|
Templates
|
||||||
</router-link>
|
</router-link>
|
||||||
<a href="#" class="text-sm text-gray-600 dark:text-white hover:text-gray-800 cursor-pointer mt-1"
|
<a href="#" class="text-sm text-gray-600 dark:text-white hover:text-gray-800 cursor-pointer mt-1"
|
||||||
@click.prevent="$getCrisp().push(['do', 'helpdesk:search'])" v-if="hasCrisp"
|
@click.prevent="$crisp.push(['do', 'helpdesk:search'])" v-if="hasCrisp"
|
||||||
>
|
>
|
||||||
Help
|
Help
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -210,7 +210,7 @@ export default {
|
||||||
this.createdFormId = response.data.form.id
|
this.createdFormId = response.data.form.id
|
||||||
|
|
||||||
this.$logEvent('form_created', {form_id: response.data.form.id, form_slug: response.data.form.slug})
|
this.$logEvent('form_created', {form_id: response.data.form.id, form_slug: response.data.form.slug})
|
||||||
this.$getCrisp().push(['set', 'session:event', [[['form_created', {
|
this.$crisp.push(['set', 'session:event', [[['form_created', {
|
||||||
form_id: response.data.form.id,
|
form_id: response.data.form.id,
|
||||||
form_slug: response.data.form.slug
|
form_slug: response.data.form.slug
|
||||||
}, 'blue']]]])
|
}, 'blue']]]])
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
<small>If the submission has the same value(s) as a previous one for the selected
|
<small>If the submission has the same value(s) as a previous one for the selected
|
||||||
column(s), we will update it, instead of creating a new one.
|
column(s), we will update it, instead of creating a new one.
|
||||||
<a href="#"
|
<a href="#"
|
||||||
@click.prevent="$getCrisp().push(['do', 'helpdesk:article:open', ['en', 'how-to-update-a-page-on-form-submission-1t1jwmn']])">More
|
@click.prevent="$crisp.push(['do', 'helpdesk:article:open', ['en', 'how-to-update-a-page-on-form-submission-1t1jwmn']])">More
|
||||||
info here.</a>
|
info here.</a>
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</template>
|
</template>
|
||||||
<p class="mt-4">
|
<p class="mt-4">
|
||||||
The code will be injected in the <span class="font-semibold">head</span> section of your form page. <a href="#" class="text-gray-500"
|
The code will be injected in the <span class="font-semibold">head</span> section of your form page. <a href="#" class="text-gray-500"
|
||||||
@click.prevent="$getCrisp().push(['do', 'helpdesk:article:open', ['en', 'how-to-inject-custom-code-in-my-form-1amadj3']])"
|
@click.prevent="$crisp.push(['do', 'helpdesk:article:open', ['en', 'how-to-inject-custom-code-in-my-form-1amadj3']])"
|
||||||
>Click
|
>Click
|
||||||
here to get an example CSS code.</a>
|
here to get an example CSS code.</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -20,7 +20,6 @@ export default {
|
||||||
loadCrisp () {
|
loadCrisp () {
|
||||||
if (this.isIframe || !window.config.crisp_website_id) return
|
if (this.isIframe || !window.config.crisp_website_id) return
|
||||||
|
|
||||||
window.$crisp = []
|
|
||||||
window.CRISP_WEBSITE_ID = window.config.crisp_website_id
|
window.CRISP_WEBSITE_ID = window.config.crisp_website_id
|
||||||
|
|
||||||
const script = document.createElement('script')
|
const script = document.createElement('script')
|
||||||
|
|
|
@ -49,7 +49,7 @@ export default {
|
||||||
redirectIfSubscribed () {
|
redirectIfSubscribed () {
|
||||||
if (this.user.is_subscribed) {
|
if (this.user.is_subscribed) {
|
||||||
this.$logEvent('subscribed', { plan: this.user.has_enterprise_subscription ? 'enterprise' : 'pro' })
|
this.$logEvent('subscribed', { plan: this.user.has_enterprise_subscription ? 'enterprise' : 'pro' })
|
||||||
this.$getCrisp().push(['set', 'session:event', [[['subscribed', { plan: this.user.has_enterprise_subscription ? 'enterprise' : 'pro' }, 'blue']]]])
|
this.$crisp.push(['set', 'session:event', [[['subscribed', { plan: this.user.has_enterprise_subscription ? 'enterprise' : 'pro' }, 'blue']]]])
|
||||||
this.$router.push({ name: 'home' })
|
this.$router.push({ name: 'home' })
|
||||||
|
|
||||||
if (this.user.has_enterprise_subscription) {
|
if (this.user.has_enterprise_subscription) {
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
{{-- Global configuration object --}}
|
{{-- Global configuration object --}}
|
||||||
<script>
|
<script>
|
||||||
window.config = @json($config);
|
window.config = @json($config);
|
||||||
|
window.$crisp = []
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{{-- Load the application scripts --}}
|
{{-- Load the application scripts --}}
|
||||||
|
|
Loading…
Reference in New Issue