mirror of
https://github.com/Gimanh/taskview-community.git
synced 2026-09-11 21:38:56 +00:00
wip: TT for specific goal
This commit is contained in:
@@ -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')),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -103,6 +103,8 @@ export default {
|
||||
graph: 'Граф',
|
||||
collaboration: 'Совместная работа',
|
||||
integrations: 'Интеграции',
|
||||
webhooks: 'Вебхуки',
|
||||
timeReports: 'Отчёты по времени',
|
||||
edit: 'Редактировать',
|
||||
moveToArchive: 'В архив',
|
||||
restoreFromArchive: 'Восстановить из архива',
|
||||
|
||||
Reference in New Issue
Block a user