wip: TT for specific goal

This commit is contained in:
Nikolai Giman
2026-05-16 09:12:13 +02:00
parent ee67342313
commit f0fed9d68b
4 changed files with 16 additions and 0 deletions
@@ -107,6 +107,17 @@
:to="{ name: 'webhooks', params: { projectId: selectedProject?.id } }"
@click="contextMenu?.close()"
/>
<!-- Time Reports -->
<UButton
v-if="canViewTimeTracking"
:label="t('contextMenu.timeReports')"
icon="i-lucide-clock"
variant="ghost"
color="neutral"
class="w-full justify-start"
:to="{ name: 'project-time-reports', params: { projectId: selectedProject?.id } }"
@click="contextMenu?.close()"
/>
<USeparator class="my-1" />
@@ -222,6 +233,7 @@ const {
canViewKanban,
canViewGraph,
canViewIntegrations,
canViewTimeTracking,
canManageUsers,
canEditGoal,
canDeleteGoal,
@@ -26,6 +26,7 @@ export function useGoalPermissionsFor(goalRef: Ref<GoalItem | null>) {
canViewGraph: computed(() => hasPermission(goalRef.value, 'GRAPH_CAN_VIEW') || hasPermission(goalRef.value, 'GRAPH_CAN_MANAGE')),
canViewIntegrations: computed(() => hasPermission(goalRef.value, 'INTEGRATIONS_CAN_VIEW') || hasPermission(goalRef.value, 'INTEGRATIONS_CAN_MANAGE')),
canManageIntegrations: computed(() => hasPermission(goalRef.value, 'INTEGRATIONS_CAN_MANAGE')),
canViewTimeTracking: computed(() => hasPermission(goalRef.value, 'TIMETRACKING_CAN_VIEW') || hasPermission(goalRef.value, 'TIMETRACKING_CAN_MANAGE_ALL')),
}
}
+1
View File
@@ -104,6 +104,7 @@ export default {
collaboration: 'Collaboration',
integrations: 'Integrations',
webhooks: 'Webhooks',
timeReports: 'Time reports',
edit: 'Edit',
moveToArchive: 'Move to Archive',
restoreFromArchive: 'Restore from Archive',
+2
View File
@@ -103,6 +103,8 @@ export default {
graph: 'Граф',
collaboration: 'Совместная работа',
integrations: 'Интеграции',
webhooks: 'Вебхуки',
timeReports: 'Отчёты по времени',
edit: 'Редактировать',
moveToArchive: 'В архив',
restoreFromArchive: 'Восстановить из архива',