fix: removed trail banner for now

This commit is contained in:
Shariq Ansari 2024-12-27 19:46:40 +05:30
parent 6cc22d8795
commit 8a05e4f8e7
3 changed files with 1 additions and 28 deletions

View File

@ -71,7 +71,6 @@
</Section> </Section>
</div> </div>
</div> </div>
<TrialBanner v-if="isFCSite.data" />
<div class="m-2 flex flex-col gap-1"> <div class="m-2 flex flex-col gap-1">
<SidebarLink <SidebarLink
:label="isSidebarCollapsed ? __('Expand') : __('Collapse')" :label="isSidebarCollapsed ? __('Expand') : __('Collapse')"
@ -229,13 +228,4 @@ function getIcon(routeName, icon) {
return PinIcon 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> </script>

View File

@ -66,7 +66,6 @@
</Section> </Section>
</div> </div>
</div> </div>
<TrialBanner v-if="isFCSite.data" />
</div> </div>
</TransitionChild> </TransitionChild>
<TransitionChild <TransitionChild
@ -215,13 +214,4 @@ function getIcon(routeName, icon) {
return PinIcon 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> </script>

View File

@ -54,7 +54,7 @@ import { usersStore } from '@/stores/users'
import { showSettings } from '@/composables/settings' import { showSettings } from '@/composables/settings'
import { Dropdown } from 'frappe-ui' import { Dropdown } from 'frappe-ui'
import { useStorage } from '@vueuse/core' import { useStorage } from '@vueuse/core'
import { computed, ref, markRaw, inject, onMounted } from 'vue' import { computed, ref, markRaw, onMounted } from 'vue'
const props = defineProps({ const props = defineProps({
isCollapsed: { isCollapsed: {
@ -68,7 +68,6 @@ const { getUser } = usersStore()
const user = computed(() => getUser() || {}) const user = computed(() => getUser() || {})
const isFCSite = inject('isFCSite')
const theme = useStorage('theme', 'light') const theme = useStorage('theme', 'light')
let dropdownOptions = ref([ let dropdownOptions = ref([
@ -100,12 +99,6 @@ let dropdownOptions = ref([
label: computed(() => __('Toggle theme')), label: computed(() => __('Toggle theme')),
onClick: toggleTheme, onClick: toggleTheme,
}, },
{
icon: 'credit-card',
label: computed(() => __('Billing')),
onClick: () => (window.location.href = '/billing'),
condition: () => isFCSite.data,
},
{ {
icon: 'settings', icon: 'settings',
label: computed(() => __('Settings')), label: computed(() => __('Settings')),