fix: show dashboard to all

(cherry picked from commit 948ce994824260b4ca6303f0b729bb1beb760b0c)
This commit is contained in:
Shariq Ansari 2025-08-15 20:27:57 +05:30 committed by Mergify
parent 671ce54380
commit e4722a79cc

View File

@ -197,13 +197,11 @@ const isSidebarCollapsed = useStorage('isSidebarCollapsed', false)
const isFCSite = ref(window.is_fc_site) const isFCSite = ref(window.is_fc_site)
const isDemoSite = ref(window.is_demo_site) const isDemoSite = ref(window.is_demo_site)
const allViews = computed(() => { const links = [
const links = [
{ {
label: 'Dashboard', label: 'Dashboard',
icon: LucideLayoutDashboard, icon: LucideLayoutDashboard,
to: 'Dashboard', to: 'Dashboard',
condition: () => isManager(),
}, },
{ {
label: 'Leads', label: 'Leads',
@ -240,8 +238,9 @@ const allViews = computed(() => {
icon: PhoneIcon, icon: PhoneIcon,
to: 'Call Logs', to: 'Call Logs',
}, },
] ]
const allViews = computed(() => {
let _views = [ let _views = [
{ {
name: 'All Views', name: 'All Views',