mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-15 03:32:15 +01:00
Move tabs and TabBar into UI package
This commit is contained in:
@@ -11,6 +11,7 @@ import duration from 'dayjs/plugin/duration';
|
||||
import { useCurrentTimeEntryStore } from '@/utils/useCurrentTimeEntry';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { getCurrentOrganizationId } from '@/utils/useUser';
|
||||
import { useOrganizationQuery } from '@/utils/useOrganizationQuery';
|
||||
import { switchOrganization } from '@/utils/useOrganization';
|
||||
import { useProjectsQuery } from '@/utils/useProjectsQuery';
|
||||
import { useTasksQuery } from '@/utils/useTasksQuery';
|
||||
@@ -47,6 +48,8 @@ dayjs.extend(duration);
|
||||
|
||||
dayjs.extend(utc);
|
||||
|
||||
const { organization } = useOrganizationQuery(getCurrentOrganizationId()!);
|
||||
|
||||
const currentTimeEntryStore = useCurrentTimeEntryStore();
|
||||
const { currentTimeEntry, isActive, now } = storeToRefs(currentTimeEntryStore);
|
||||
const { startLiveTimer, stopLiveTimer, setActiveState } = currentTimeEntryStore;
|
||||
@@ -152,6 +155,7 @@ const { tags } = useTagsQuery();
|
||||
:create-time-entry="createTimeEntry"
|
||||
:currency="getOrganizationCurrencyString()"
|
||||
:can-create-project="canCreateProjects()"
|
||||
:organization-billable-rate="organization?.billable_rate ?? null"
|
||||
:projects
|
||||
:tasks
|
||||
:tags
|
||||
@@ -173,6 +177,7 @@ const { tags } = useTagsQuery();
|
||||
:create-project
|
||||
:enable-estimated-time="isAllowedToPerformPremiumAction()"
|
||||
:can-create-project="canCreateProjects()"
|
||||
:organization-billable-rate="organization?.billable_rate ?? null"
|
||||
:create-client
|
||||
:clients
|
||||
:tags
|
||||
|
||||
Reference in New Issue
Block a user