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

@@ -34,6 +34,7 @@ const props = defineProps<{
isActive: boolean;
currency: string;
enableEstimatedTime: boolean;
canCreateProject: boolean;
}>();
const emit = defineEmits<{
@@ -110,6 +111,7 @@ function updateTimeEntryDescription() {
class="flex items-center w-[130px] @2xl:w-auto shrink min-w-0">
<TimeTrackerProjectTaskDropdown
:createClient
:canCreateProject
:clients
:createProject
:currency="currency"