Fix help link (#205)

* Fix help link

* Increase spacing

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
formsdev 2023-09-19 18:31:04 +05:30 committed by GitHub
parent 615fa5cda2
commit d13a859c6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 3 deletions

View File

@ -27,7 +27,7 @@
<span v-else>Pricing</span> <span v-else>Pricing</span>
</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="$crisp.push(['do', 'helpdesk:search'])" v-if="hasCrisp" @click.prevent="openCrisp" v-if="hasCrisp"
> >
Help Help
</a> </a>
@ -194,6 +194,10 @@ export default {
// Redirect to login. // Redirect to login.
this.$router.push({name: 'login'}) this.$router.push({name: 'login'})
}, },
openCrisp () {
window.$crisp.push(['do', 'chat:show'])
window.$crisp.push(['do', 'chat:open'])
}
} }
} }
</script> </script>

View File

@ -22,7 +22,7 @@
<div class="hidden md:block mr-10 relative"> <div class="hidden md:block mr-10 relative">
<a href="#" <a href="#"
class="text-sm px-3 py-2 hover:bg-gray-50 cursor-pointer rounded-md text-gray-500 px-0 sm:px-3 hover:text-gray-800 cursor-pointer mt-1" class="text-sm px-3 py-2 hover:bg-gray-50 cursor-pointer rounded-md text-gray-500 px-0 sm:px-3 hover:text-gray-800 cursor-pointer mt-1"
@click.prevent="$crisp.push(['do', 'helpdesk:search'])" @click.prevent="openCrisp"
> >
Help Help
</a> </a>
@ -221,6 +221,10 @@ export default {
}, },
methods: { methods: {
openCrisp () {
window.$crisp.push(['do', 'chat:show'])
window.$crisp.push(['do', 'chat:open'])
},
showValidationErrors() { showValidationErrors() {
this.showFormErrorModal = true this.showFormErrorModal = true
}, },

View File

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<section class="bg-gradient-to-b relative from-white to-gray-100 py-12 sm:py-16 lg:py-20 xl:py-24"> <section class="bg-gradient-to-b relative from-white to-gray-100 py-8 sm:py-16 ">
<div class="absolute inset-0"> <div class="absolute inset-0">
<img class="w-full h-full object-cover object-top" <img class="w-full h-full object-cover object-top"
:src="asset('img/pages/ai_form_builder/background-pattern.svg')" alt=""> :src="asset('img/pages/ai_form_builder/background-pattern.svg')" alt="">