move currency and cancreateproject permission to props to decouple TimeEntryCreateModal from web

This commit is contained in:
Gregor Vostrak
2025-11-04 16:08:24 +01:00
parent 2f807e4808
commit 522f7d2bd2
6 changed files with 17 additions and 7 deletions

View File

@@ -41,6 +41,8 @@ const props = defineProps<{
// Permissions / feature flags
enableEstimatedTime: boolean;
currency: string;
canCreateProject: boolean;
createTimeEntry: (
entry: Omit<TimeEntry, 'id' | 'organization_id' | 'user_id'>
@@ -295,6 +297,8 @@ watch(showEditTimeEntryModal, (value) => {
:create-client="createClient"
:create-project="createProject"
:create-tag="createTag"
:currency="currency"
:can-create-project="canCreateProject"
:tags="tags as any"
:projects="projects"
:tasks="tasks"