add feedback

This commit is contained in:
Emily
2024-12-27 16:49:21 +01:00
parent a10755f998
commit 745a332e56
2 changed files with 66 additions and 1 deletions

View File

@@ -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') },
},
{