From e4722a79ccf250b611df22bb67d16314b98394a5 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 15 Aug 2025 20:27:57 +0530 Subject: [PATCH] fix: show dashboard to all (cherry picked from commit 948ce994824260b4ca6303f0b729bb1beb760b0c) --- .../src/components/Layouts/AppSidebar.vue | 87 +++++++++---------- 1 file changed, 43 insertions(+), 44 deletions(-) diff --git a/frontend/src/components/Layouts/AppSidebar.vue b/frontend/src/components/Layouts/AppSidebar.vue index 152cd6b3..bd901520 100644 --- a/frontend/src/components/Layouts/AppSidebar.vue +++ b/frontend/src/components/Layouts/AppSidebar.vue @@ -197,51 +197,50 @@ const isSidebarCollapsed = useStorage('isSidebarCollapsed', false) const isFCSite = ref(window.is_fc_site) const isDemoSite = ref(window.is_demo_site) -const allViews = computed(() => { - const links = [ - { - label: 'Dashboard', - icon: LucideLayoutDashboard, - to: 'Dashboard', - condition: () => isManager(), - }, - { - label: 'Leads', - icon: LeadsIcon, - to: 'Leads', - }, - { - label: 'Deals', - icon: DealsIcon, - to: 'Deals', - }, - { - label: 'Contacts', - icon: ContactsIcon, - to: 'Contacts', - }, - { - label: 'Organizations', - icon: OrganizationsIcon, - to: 'Organizations', - }, - { - label: 'Notes', - icon: NoteIcon, - to: 'Notes', - }, - { - label: 'Tasks', - icon: TaskIcon, - to: 'Tasks', - }, - { - label: 'Call Logs', - icon: PhoneIcon, - to: 'Call Logs', - }, - ] +const links = [ + { + label: 'Dashboard', + icon: LucideLayoutDashboard, + to: 'Dashboard', + }, + { + label: 'Leads', + icon: LeadsIcon, + to: 'Leads', + }, + { + label: 'Deals', + icon: DealsIcon, + to: 'Deals', + }, + { + label: 'Contacts', + icon: ContactsIcon, + to: 'Contacts', + }, + { + label: 'Organizations', + icon: OrganizationsIcon, + to: 'Organizations', + }, + { + label: 'Notes', + icon: NoteIcon, + to: 'Notes', + }, + { + label: 'Tasks', + icon: TaskIcon, + to: 'Tasks', + }, + { + label: 'Call Logs', + icon: PhoneIcon, + to: 'Call Logs', + }, +] +const allViews = computed(() => { let _views = [ { name: 'All Views',