This commit is contained in:
Julien Nahum
2024-02-01 18:21:34 +01:00
9 changed files with 17 additions and 20 deletions

View File

@@ -82,7 +82,6 @@ const passwordEntered = function (password) {
openCompleteForm.value.addPasswordError('Invalid password.')
}
})
openCompleteForm.value.submit()
})
}

View File

@@ -271,8 +271,7 @@ export default {
methods: {
contactUs() {
window.$crisp.push(['do', 'chat:show'])
window.$crisp.push(['do', 'chat:open'])
useCrisp().openAndShowChat()
}
}
}

View File

@@ -32,7 +32,8 @@ export default {
return {
authStore,
authenticated : computed(() => authStore.check),
user : computed(() => authStore.user)
user : computed(() => authStore.user),
crisp: useCrisp()
}
},
@@ -58,7 +59,7 @@ export default {
redirectIfSubscribed () {
if (this.user.is_subscribed) {
useAmplitude().logEvent('subscribed', { plan: this.user.has_enterprise_subscription ? 'enterprise' : 'pro' })
this.$crisp.push(['set', 'session:event', [[['subscribed', { plan: this.user.has_enterprise_subscription ? 'enterprise' : 'pro' }, 'blue']]]])
this.crisp.pushEvent('subscribed', { plan: this.user.has_enterprise_subscription ? 'enterprise' : 'pro' })
this.$router.push({ name: 'home' })
if (this.user.has_enterprise_subscription) {