diff --git a/web/src/components/features/projects/parts/ProjectListBase.vue b/web/src/components/features/projects/parts/ProjectListBase.vue index 8983b04..1e1cf03 100644 --- a/web/src/components/features/projects/parts/ProjectListBase.vue +++ b/web/src/components/features/projects/parts/ProjectListBase.vue @@ -107,6 +107,17 @@ :to="{ name: 'webhooks', params: { projectId: selectedProject?.id } }" @click="contextMenu?.close()" /> + + @@ -222,6 +233,7 @@ const { canViewKanban, canViewGraph, canViewIntegrations, + canViewTimeTracking, canManageUsers, canEditGoal, canDeleteGoal, diff --git a/web/src/composables/useGoalPermissions.ts b/web/src/composables/useGoalPermissions.ts index dbc29a1..f8d1451 100644 --- a/web/src/composables/useGoalPermissions.ts +++ b/web/src/composables/useGoalPermissions.ts @@ -26,6 +26,7 @@ export function useGoalPermissionsFor(goalRef: Ref) { 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')), } } diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index 52269f8..36db839 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -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', diff --git a/web/src/locales/ru.ts b/web/src/locales/ru.ts index 5e70703..c127944 100644 --- a/web/src/locales/ru.ts +++ b/web/src/locales/ru.ts @@ -103,6 +103,8 @@ export default { graph: 'Граф', collaboration: 'Совместная работа', integrations: 'Интеграции', + webhooks: 'Вебхуки', + timeReports: 'Отчёты по времени', edit: 'Редактировать', moveToArchive: 'В архив', restoreFromArchive: 'Восстановить из архива',