From 745a332e56c9f816dada46c6719e485111f39d00 Mon Sep 17 00:00:00 2001 From: Emily Date: Fri, 27 Dec 2024 16:49:21 +0100 Subject: [PATCH] add feedback --- dashboard/components/dialog/Feedback.vue | 56 ++++++++++++++++++++++++ dashboard/layouts/dashboard.vue | 11 ++++- 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 dashboard/components/dialog/Feedback.vue diff --git a/dashboard/components/dialog/Feedback.vue b/dashboard/components/dialog/Feedback.vue new file mode 100644 index 0000000..9b107dd --- /dev/null +++ b/dashboard/components/dialog/Feedback.vue @@ -0,0 +1,56 @@ + + + \ No newline at end of file diff --git a/dashboard/layouts/dashboard.vue b/dashboard/layouts/dashboard.vue index 901f77c..c86c753 100644 --- a/dashboard/layouts/dashboard.vue +++ b/dashboard/layouts/dashboard.vue @@ -3,10 +3,13 @@ import type { Section } from '~/components/CVerticalNavigation.vue'; import { Lit } from 'litlyx-js'; +import { DialogFeedback } from '#components'; const { userRoles, isLogged } = useLoggedUser(); const { project } = useProject(); +const modal = useModal(); + const selfhosted = useSelfhosted(); const sections: Section[] = [ @@ -25,7 +28,13 @@ const sections: Section[] = [ { label: 'Settings', to: '/settings', icon: 'fal fa-gear' }, { grow: true, - label: 'Docs', to: 'https://docs.litlyx.com', icon: 'fal fa-book', external: true, + label: 'Leave a Feedback', icon: 'fal fa-message', + action() { + modal.open(DialogFeedback, {}); + }, + }, + { + label: 'Documentation', to: 'https://docs.litlyx.com', icon: 'fal fa-book', external: true, action() { Lit.event('docs_clicked') }, }, {