Skip to content

Commit

Permalink
#378: Remove translations for tab links, because we do not need a loc…
Browse files Browse the repository at this point in the history
…ale translation for the route definition.
  • Loading branch information
benitsch committed Jul 17, 2024
1 parent d03475b commit a9cc0db
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/components/StudyList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ Licensed under the Elastic License 2.0. */
function goToStudy(id: string): void {
router.push({
name: t('studyNavigation.tabLink.overview'),
name: 'Overview',
params: { studyId: id },
});
}
Expand Down
16 changes: 8 additions & 8 deletions src/components/shared/MoreTabNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,49 +41,49 @@ Licensed under the Elastic License 2.0. */
const tabs: Tab[] = [
{
title: t('studyNavigation.tabs.overview'),
name: t('studyNavigation.tabLink.overview'),
name: 'Overview',
params: { studyId: props.studyId },
access: [StudyRole.Admin, StudyRole.Operator, StudyRole.Viewer],
},
{
title: t('studyNavigation.tabs.participants'),
name: t('studyNavigation.tabLink.participants'),
name: 'Participants',
params: { studyId: props.studyId },
access: [StudyRole.Admin, StudyRole.Operator],
},
{
title: t('studyNavigation.tabs.observations'),
name: t('studyNavigation.tabLink.observations'),
name: 'Observations',
params: { studyId: props.studyId },
access: [StudyRole.Admin, StudyRole.Operator],
},
{
title: t('studyNavigation.tabs.integration'),
name: t('studyNavigation.tabLink.integration'),
name: 'Integrations',
params: { studyId: props.studyId },
access: [StudyRole.Admin, StudyRole.Operator],
},
{
title: t('studyNavigation.tabs.interventions'),
name: t('studyNavigation.tabLink.interventions'),
name: 'Interventions',
params: { studyId: props.studyId },
access: [StudyRole.Admin, StudyRole.Operator],
},
{
title: t('studyNavigation.tabs.timeline'),
name: t('studyNavigation.tabLink.timeline'),
name: 'Timeline',
params: { studyId: props.studyId },
access: [StudyRole.Admin, StudyRole.Operator],
},
{
title: t('studyNavigation.tabs.monitoring'),
name: t('studyNavigation.tabLink.monitoring'),
name: 'Monitoring',
params: { studyId: props.studyId },
access: [StudyRole.Admin, StudyRole.Viewer],
},
{
title: t('studyNavigation.tabs.data'),
name: t('studyNavigation.tabLink.data'),
name: 'Data',
params: { studyId: props.studyId },
access: [StudyRole.Admin, StudyRole.Viewer],
},
Expand Down
10 changes: 0 additions & 10 deletions src/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,6 @@
"timeline": "Kalender",
"monitoring": "Monitoring",
"data": "Daten"
},
"tabLink": {
"overview": "Overview",
"participants": "Participants",
"observations": "Observations",
"integration": "Integrations",
"interventions": "Interventions",
"timeline": "Timeline",
"monitoring": "Monitoring",
"data": "Data"
}
},

Expand Down
10 changes: 0 additions & 10 deletions src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,6 @@
"timeline": "Timeline",
"monitoring": "Monitoring",
"data": "Data"
},
"tabLink": {
"overview": "Overview",
"participants": "Participants",
"observations": "Observations",
"interventions": "Interventions",
"integration": "Integrations",
"timeline": "Timeline",
"monitoring": "Monitoring",
"data": "Data"
}
},

Expand Down

0 comments on commit a9cc0db

Please sign in to comment.