hide create project buttons and modal depending on the permission

This commit is contained in:
Gregor Vostrak
2024-10-28 13:37:39 +01:00
parent eb4debe481
commit cd7573dcf1
11 changed files with 29 additions and 2 deletions

View File

@@ -40,6 +40,7 @@ const props = defineProps<{
currency: string;
selectedTimeEntries: TimeEntry[];
enableEstimatedTime: boolean;
canCreateProject: boolean;
}>();
const emit = defineEmits<{
selected: [TimeEntry[]];
@@ -121,6 +122,7 @@ function onSelectChange(event: Event) {
:clients
:createProject
:createClient
:canCreateProject
:projects="projects"
:tasks="tasks"
:showBadgeBorder="false"
@@ -177,6 +179,7 @@ function onSelectChange(event: Event) {
<TimeEntryRow
:projects="projects"
:enableEstimatedTime
:canCreateProject
:tasks="tasks"
:selected="
!!selectedTimeEntries.find(