diff --git a/src/components/sharing/linkSharing.vue b/src/components/sharing/linkSharing.vue index e777e9bd1..46f552386 100644 --- a/src/components/sharing/linkSharing.vue +++ b/src/components/sharing/linkSharing.vue @@ -227,7 +227,7 @@ type SelectedViewMapper = Record const selectedView = ref({}) const availableViews = computed>(() => ({ - project: t('project.list.title'), + list: t('project.list.title'), gantt: t('project.gantt.title'), table: t('project.table.title'), kanban: t('project.kanban.title'), @@ -285,7 +285,7 @@ async function remove(projectId: IProject['id']) { } } -function getShareLink(hash: string, view: ProjectView = PROJECT_VIEWS.PROJECT) { +function getShareLink(hash: string, view: ProjectView = PROJECT_VIEWS.LIST) { return frontendUrl.value + 'share/' + hash + '/auth?view=' + view } diff --git a/src/types/ProjectView.ts b/src/types/ProjectView.ts index c3512c8cd..ba435ef96 100644 --- a/src/types/ProjectView.ts +++ b/src/types/ProjectView.ts @@ -1,5 +1,5 @@ export const PROJECT_VIEWS = { - PROJECT: 'project', + LIST: 'list', GANTT: 'gantt', TABLE: 'table', KANBAN: 'kanban',