From 4623697f79d4d66bbfd409dc8d38a4a5560d2367 Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Wed, 1 Oct 2025 13:10:29 +0200 Subject: [PATCH] add feedback button in sidebar --- resources/js/Components/UserSettingsIcon.vue | 13 ++----------- resources/js/Layouts/AppLayout.vue | 17 ++++++++++++++--- resources/js/utils/feedback.ts | 9 +++++++++ 3 files changed, 25 insertions(+), 14 deletions(-) create mode 100644 resources/js/utils/feedback.ts diff --git a/resources/js/Components/UserSettingsIcon.vue b/resources/js/Components/UserSettingsIcon.vue index 2302d63d..6a3df30c 100644 --- a/resources/js/Components/UserSettingsIcon.vue +++ b/resources/js/Components/UserSettingsIcon.vue @@ -14,6 +14,7 @@ import { ArrowLeftOnRectangleIcon, ChatBubbleLeftRightIcon, } from '@heroicons/vue/24/solid'; +import { openFeedback } from '@/utils/feedback'; const page = usePage<{ has_services_extension?: boolean; @@ -34,16 +35,6 @@ const page = usePage<{ const logout = () => { router.post(route('logout')); }; - -const openFeedback = () => { - if ( - typeof window !== 'undefined' && - 'showChatWindow' in window && - typeof window.showChatWindow === 'function' - ) { - window.showChatWindow(); - } -};