fix: added some more links in user dropdown

This commit is contained in:
Shariq Ansari 2024-11-18 15:56:41 +05:30
parent 4755b35c91
commit 06fed8008c
3 changed files with 25 additions and 14 deletions

View file

@ -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' ? '₹' : '$'

View file

@ -8,7 +8,7 @@
<FCLogo class="size-8 flex-shrink-0 rounded" />
<div class="flex flex-1 flex-col text-left duration-300 ease-in-out ml-2 w-auto">
<div class="text-base font-medium leading-none text-gray-900">
{{ 'Billing' }}
{{ 'Frappe Cloud' }}
</div>
<div class="mt-1 text-sm leading-none text-gray-700">
{{ 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'),
},
],
},
{

View file

@ -1,7 +1,7 @@
<template>
<header class="flex h-10.5 border-b items-center justify-between py-2 px-5 shrink-0">
<h2 class="text-lg font-semibold text-gray-900 leading-5">
{{ 'Overview' }}
{{ 'Billing Overview' }}
</h2>
</header>
<div v-if="team.data" class="flex flex-1 flex-col px-60 pt-6 gap-8 overflow-y-auto">