Replace old crisp mentions

This commit is contained in:
Julien Nahum 2022-12-24 09:48:59 +01:00
parent 2b2f6aa462
commit 73ee9a0bf9
7 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@
Templates
</router-link>
<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
</a>

View File

@ -210,7 +210,7 @@ export default {
this.createdFormId = response.data.form.id
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_slug: response.data.form.slug
}, 'blue']]]])

View File

@ -59,7 +59,7 @@
<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.
<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>
</small>
</div>

View File

@ -13,7 +13,7 @@
</template>
<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"
@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
here to get an example CSS code.</a>
</p>

View File

@ -20,7 +20,6 @@ export default {
loadCrisp () {
if (this.isIframe || !window.config.crisp_website_id) return
window.$crisp = []
window.CRISP_WEBSITE_ID = window.config.crisp_website_id
const script = document.createElement('script')

View File

@ -49,7 +49,7 @@ export default {
redirectIfSubscribed () {
if (this.user.is_subscribed) {
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' })
if (this.user.has_enterprise_subscription) {

View File

@ -45,6 +45,7 @@
{{-- Global configuration object --}}
<script>
window.config = @json($config);
window.$crisp = []
</script>
{{-- Load the application scripts --}}