fix: list view variable name

This commit is contained in:
kolaente 2023-01-18 15:54:50 +01:00
parent 0ae389f485
commit b2884af81b
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 3 additions and 3 deletions

View File

@ -227,7 +227,7 @@ type SelectedViewMapper = Record<IProject['id'], ProjectView>
const selectedView = ref<SelectedViewMapper>({}) const selectedView = ref<SelectedViewMapper>({})
const availableViews = computed<Record<ProjectView, string>>(() => ({ const availableViews = computed<Record<ProjectView, string>>(() => ({
project: t('project.list.title'), list: t('project.list.title'),
gantt: t('project.gantt.title'), gantt: t('project.gantt.title'),
table: t('project.table.title'), table: t('project.table.title'),
kanban: t('project.kanban.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 return frontendUrl.value + 'share/' + hash + '/auth?view=' + view
} }
</script> </script>

View File

@ -1,5 +1,5 @@
export const PROJECT_VIEWS = { export const PROJECT_VIEWS = {
PROJECT: 'project', LIST: 'list',
GANTT: 'gantt', GANTT: 'gantt',
TABLE: 'table', TABLE: 'table',
KANBAN: 'kanban', KANBAN: 'kanban',