diff --git a/resources/js/Pages/Time.vue b/resources/js/Pages/Time.vue index 89b7844a..370c44ee 100644 --- a/resources/js/Pages/Time.vue +++ b/resources/js/Pages/Time.vue @@ -125,6 +125,8 @@ function deleteSelected() { :createClient="createClient" :createTag="createTag" :createTimeEntry="createTimeEntry" + :currency="getOrganizationCurrencyString()" + :canCreateProject="canCreateProjects()" :projects :tasks :tags diff --git a/resources/js/packages/ui/package-lock.json b/resources/js/packages/ui/package-lock.json index f7596056..15a19200 100644 --- a/resources/js/packages/ui/package-lock.json +++ b/resources/js/packages/ui/package-lock.json @@ -1,12 +1,12 @@ { "name": "@solidtime/ui", - "version": "0.0.10", + "version": "0.0.11", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@solidtime/ui", - "version": "0.0.9", + "version": "0.0.11", "license": "AGPL-3.0", "devDependencies": { "@types/node": "^22.4.1", diff --git a/resources/js/packages/ui/package.json b/resources/js/packages/ui/package.json index 6e212dc5..c273b523 100644 --- a/resources/js/packages/ui/package.json +++ b/resources/js/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@solidtime/ui", - "version": "0.0.10", + "version": "0.0.11", "description": "Package containing the solidtime ui components", "main": "./dist/solidtime-ui-lib.umd.cjs", "module": "./dist/solidtime-ui-lib.js", diff --git a/resources/js/packages/ui/src/TimeEntry/TimeEntryCreateModal.vue b/resources/js/packages/ui/src/TimeEntry/TimeEntryCreateModal.vue index 8420495e..fbf4920e 100644 --- a/resources/js/packages/ui/src/TimeEntry/TimeEntryCreateModal.vue +++ b/resources/js/packages/ui/src/TimeEntry/TimeEntryCreateModal.vue @@ -19,8 +19,6 @@ import type { CreateTimeEntryBody, } from '@/packages/api/src'; import TimePicker from '@/packages/ui/src/Input/TimePicker.vue'; -import { getOrganizationCurrencyString } from '@/utils/money'; -import { canCreateProjects } from '@/utils/permissions'; import TagDropdown from '@/packages/ui/src/Tag/TagDropdown.vue'; import { Badge } from '@/packages/ui/src'; import BillableIcon from '@/packages/ui/src/Icons/BillableIcon.vue'; @@ -46,6 +44,8 @@ const props = defineProps<{ projects: Project[]; tasks: Task[]; clients: Client[]; + currency: string; + canCreateProject: boolean; }>(); const description = ref(null); @@ -137,8 +137,8 @@ type BillableOption = { :clients :createProject :createClient - :canCreateProject="canCreateProjects()" - :currency="getOrganizationCurrencyString()" + :canCreateProject + :currency size="xlarge" class="bg-input-background" :projects="projects"