From cf499e7274d336998262276c61c3e099f0d7aa85 Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Mon, 15 Jan 2024 13:18:02 +0100 Subject: [PATCH] Fix Navbar help button --- client/components/global/Navbar.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/components/global/Navbar.vue b/client/components/global/Navbar.vue index c72714d..79607df 100644 --- a/client/components/global/Navbar.vue +++ b/client/components/global/Navbar.vue @@ -31,7 +31,7 @@ Help @@ -141,6 +141,7 @@ import {computed} from 'vue' import Dropdown from '~/components/global/Dropdown.vue' import WorkspaceDropdown from './WorkspaceDropdown.vue' import opnformConfig from "~/opnform.config.js"; +import {useRuntimeConfig} from "#app"; export default { components: { @@ -149,11 +150,11 @@ export default { }, async setup() { - const {openCrisp} = useCrisp() + const {openHelpdesk} = useCrisp() const authStore = useAuthStore() return { authStore, - openCrisp, + openHelpdesk, opnformConfig, appStore: useAppStore(), formsStore: useFormsStore(), @@ -202,7 +203,7 @@ export default { return this.user && this.user.has_forms === true }, hasCrisp() { - return this.config.crispWebsiteId + return this.config.public.crispWebsiteId && this.config.public.crispWebsiteId !== '' } },