From 8b026099de237734223f285b53777feb0afc6127 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 4 Sep 2024 14:00:03 +0200 Subject: [PATCH] fix dashboard + live demo --- dashboard/components/CVerticalNavigation.vue | 14 ++++-- dashboard/components/dashboard/CountCard.vue | 2 +- dashboard/components/dashboard/TopCards.vue | 2 +- dashboard/layouts/dashboard.vue | 27 ++++++++++-- dashboard/pages/live_demo.vue | 45 +++++++------------- dashboard/utils/prettyNumber.ts | 3 +- 6 files changed, 55 insertions(+), 38 deletions(-) diff --git a/dashboard/components/CVerticalNavigation.vue b/dashboard/components/CVerticalNavigation.vue index 0cafc25..4989a0c 100644 --- a/dashboard/components/CVerticalNavigation.vue +++ b/dashboard/components/CVerticalNavigation.vue @@ -10,6 +10,7 @@ export type Entry = { icon?: string, action?: () => any, adminOnly?: boolean, + premiumOnly?:boolean, external?: boolean, grow?: boolean } @@ -112,6 +113,10 @@ watch(selected, () => { setActiveProject(selected.value._id.toString()) }) +const isPremium = computed(()=>{ + return activeProject.value?.premium; +}) +