hide billable rate in projects table for employees when employees_can_see_billable_rates is disabled

This commit is contained in:
Gregor Vostrak
2024-10-01 22:23:45 +02:00
committed by Constantin Graf
parent 6c7b1b3f21
commit 8d950c6d45
4 changed files with 40 additions and 19 deletions

View File

@@ -21,6 +21,7 @@ const { tasks } = storeToRefs(useTasksStore());
const props = defineProps<{
project: Project;
showBillableRate: boolean;
}>();
const client = computed(() => {
@@ -104,7 +105,9 @@ const showEditProjectModal = ref(false);
:current="project.spent_time"></EstimatedTimeProgress>
<span v-else> -- </span>
</div>
<div class="whitespace-nowrap px-3 py-4 text-sm text-muted">
<div
class="whitespace-nowrap px-3 py-4 text-sm text-muted"
v-if="showBillableRate">
{{ billableRateInfo }}
</div>
<div