From 06fed8008c7836e002402f28ea0d524c7091c446 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Mon, 18 Nov 2024 15:56:41 +0530 Subject: [PATCH] fix: added some more links in user dropdown --- billing/src/components/AppSidebar.vue | 2 +- billing/src/components/UserDropdown.vue | 35 ++++++++++++++++--------- billing/src/pages/Overview.vue | 2 +- 3 files changed, 25 insertions(+), 14 deletions(-) diff --git a/billing/src/components/AppSidebar.vue b/billing/src/components/AppSidebar.vue index cfa36156b3..6c7fa1a3ed 100644 --- a/billing/src/components/AppSidebar.vue +++ b/billing/src/components/AppSidebar.vue @@ -97,7 +97,7 @@ async function openSupport() { 'frappe.integrations.frappe_providers.frappecloud_billing.api', { method: 'site.get_first_support_plan', - }, + } ) if (!supportPlan) return let currency = team.data.currency == 'INR' ? '₹' : '$' diff --git a/billing/src/components/UserDropdown.vue b/billing/src/components/UserDropdown.vue index b9f4494d0b..a711bd4b73 100644 --- a/billing/src/components/UserDropdown.vue +++ b/billing/src/components/UserDropdown.vue @@ -8,7 +8,7 @@
- {{ 'Billing' }} + {{ 'Frappe Cloud' }}
{{ user?.fullName }} @@ -37,22 +37,33 @@ const { user, logout } = getSession() let dropdownOptions = ref([ { - group: 'Manage', + group: 'Apps', hideLabel: true, items: [ { component: markRaw(Apps), }, - // { - // icon: 'life-buoy', - // label: computed(() => 'Support'), - // onClick: () => window.open('https://t.me/frappecrm', '_blank'), - // }, - // { - // icon: 'book-open', - // label: computed(() => 'Docs'), - // onClick: () => window.open('https://docs.frappe.io/crm', '_blank'), - // }, + ], + }, + { + group: 'Manage', + hideLabel: true, + items: [ + { + icon: 'monitor', + label: computed(() => 'Frappe Cloud Dashboard'), + onClick: () => window.open('https://frappecloud.com/dashboard', '_blank'), + }, + { + icon: 'book-open', + label: computed(() => 'About Us'), + onClick: () => window.open('https://frappe.io', '_blank'), + }, + { + icon: 'phone', + label: computed(() => 'Contact Us'), + onClick: () => window.open('https://frappe.io/contact-us', '_blank'), + }, ], }, { diff --git a/billing/src/pages/Overview.vue b/billing/src/pages/Overview.vue index dfe925c9bb..728ba2f90d 100644 --- a/billing/src/pages/Overview.vue +++ b/billing/src/pages/Overview.vue @@ -1,7 +1,7 @@