Skip to content

Commit

Permalink
make currency and createProject permission props in the create time e…
Browse files Browse the repository at this point in the history
…ntry modal, bump ui version
  • Loading branch information
Onatcer committed Nov 13, 2024
1 parent 2cf9b3a commit 5e3ac45
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions resources/js/Pages/Time.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ function deleteSelected() {
:createClient="createClient"
:createTag="createTag"
:createTimeEntry="createTimeEntry"
:currency="getOrganizationCurrencyString()"
:canCreateProject="canCreateProjects()"
:projects
:tasks
:tags
Expand Down
4 changes: 2 additions & 2 deletions resources/js/packages/ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion resources/js/packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -46,6 +44,8 @@ const props = defineProps<{
projects: Project[];
tasks: Task[];
clients: Client[];
currency: string;
canCreateProject: boolean;
}>();
const description = ref<HTMLInputElement | null>(null);
Expand Down Expand Up @@ -137,8 +137,8 @@ type BillableOption = {
:clients
:createProject
:createClient
:canCreateProject="canCreateProjects()"
:currency="getOrganizationCurrencyString()"
:canCreateProject
:currency
size="xlarge"
class="bg-input-background"
:projects="projects"
Expand Down

0 comments on commit 5e3ac45

Please sign in to comment.