mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 12:42:15 +01:00
fix: display custom billable rate correctly on project detail page
This commit is contained in:
@@ -44,8 +44,7 @@ import UpdateSidebarNotification from '@/Components/UpdateSidebarNotification.vu
|
||||
import BillingBanner from '@/Components/Billing/BillingBanner.vue';
|
||||
import UserTimezoneMismatchModal from '@/Components/Common/User/UserTimezoneMismatchModal.vue';
|
||||
import { useTheme } from '@/utils/theme';
|
||||
import { useQuery } from '@tanstack/vue-query';
|
||||
import { api } from '@/packages/api/src';
|
||||
import { useOrganizationQuery } from '@/utils/useOrganizationQuery';
|
||||
import { getCurrentOrganizationId } from '@/utils/useUser';
|
||||
import LoadingSpinner from '@/packages/ui/src/LoadingSpinner.vue';
|
||||
import { twMerge } from 'tailwind-merge';
|
||||
@@ -65,22 +64,12 @@ defineProps({
|
||||
const showSidebarMenu = ref(false);
|
||||
const isUnloading = ref(false);
|
||||
|
||||
const { data: organization, isLoading: isOrganizationLoading } = useQuery({
|
||||
queryKey: ['organization', getCurrentOrganizationId()],
|
||||
queryFn: () =>
|
||||
api.getOrganization({
|
||||
params: {
|
||||
organization: getCurrentOrganizationId()!,
|
||||
},
|
||||
}),
|
||||
enabled: !!getCurrentOrganizationId(),
|
||||
});
|
||||
|
||||
provide(
|
||||
'organization',
|
||||
computed(() => organization.value?.data)
|
||||
const { organization, isLoading: isOrganizationLoading } = useOrganizationQuery(
|
||||
getCurrentOrganizationId()!
|
||||
);
|
||||
|
||||
provide('organization', organization);
|
||||
|
||||
onMounted(async () => {
|
||||
useTheme();
|
||||
// make sure that the initial requests are only loaded once, this can be removed once we move away from inertia
|
||||
|
||||
Reference in New Issue
Block a user