fix: removed trail banner for now
This commit is contained in:
parent
6cc22d8795
commit
8a05e4f8e7
@ -71,7 +71,6 @@
|
||||
</Section>
|
||||
</div>
|
||||
</div>
|
||||
<TrialBanner v-if="isFCSite.data" />
|
||||
<div class="m-2 flex flex-col gap-1">
|
||||
<SidebarLink
|
||||
:label="isSidebarCollapsed ? __('Expand') : __('Collapse')"
|
||||
@ -229,13 +228,4 @@ function getIcon(routeName, icon) {
|
||||
return PinIcon
|
||||
}
|
||||
}
|
||||
|
||||
const isFCSite = createResource({
|
||||
url: 'frappe.integrations.frappe_providers.frappecloud_billing.is_fc_site',
|
||||
cache: 'isFCSite',
|
||||
auto: true,
|
||||
transform: (data) => Boolean(data),
|
||||
})
|
||||
|
||||
provide('isFCSite', isFCSite)
|
||||
</script>
|
||||
|
||||
@ -66,7 +66,6 @@
|
||||
</Section>
|
||||
</div>
|
||||
</div>
|
||||
<TrialBanner v-if="isFCSite.data" />
|
||||
</div>
|
||||
</TransitionChild>
|
||||
<TransitionChild
|
||||
@ -215,13 +214,4 @@ function getIcon(routeName, icon) {
|
||||
return PinIcon
|
||||
}
|
||||
}
|
||||
|
||||
const isFCSite = createResource({
|
||||
url: 'frappe.integrations.frappe_providers.frappecloud_billing.is_fc_site',
|
||||
cache: 'isFCSite',
|
||||
auto: true,
|
||||
transform: (data) => Boolean(data),
|
||||
})
|
||||
|
||||
provide('isFCSite', isFCSite)
|
||||
</script>
|
||||
|
||||
@ -54,7 +54,7 @@ import { usersStore } from '@/stores/users'
|
||||
import { showSettings } from '@/composables/settings'
|
||||
import { Dropdown } from 'frappe-ui'
|
||||
import { useStorage } from '@vueuse/core'
|
||||
import { computed, ref, markRaw, inject, onMounted } from 'vue'
|
||||
import { computed, ref, markRaw, onMounted } from 'vue'
|
||||
|
||||
const props = defineProps({
|
||||
isCollapsed: {
|
||||
@ -68,7 +68,6 @@ const { getUser } = usersStore()
|
||||
|
||||
const user = computed(() => getUser() || {})
|
||||
|
||||
const isFCSite = inject('isFCSite')
|
||||
const theme = useStorage('theme', 'light')
|
||||
|
||||
let dropdownOptions = ref([
|
||||
@ -100,12 +99,6 @@ let dropdownOptions = ref([
|
||||
label: computed(() => __('Toggle theme')),
|
||||
onClick: toggleTheme,
|
||||
},
|
||||
{
|
||||
icon: 'credit-card',
|
||||
label: computed(() => __('Billing')),
|
||||
onClick: () => (window.location.href = '/billing'),
|
||||
condition: () => isFCSite.data,
|
||||
},
|
||||
{
|
||||
icon: 'settings',
|
||||
label: computed(() => __('Settings')),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user