forked from vikunja/frontend
fix: list view variable name
This commit is contained in:
parent
0ae389f485
commit
b2884af81b
|
@ -227,7 +227,7 @@ type SelectedViewMapper = Record<IProject['id'], ProjectView>
|
|||
const selectedView = ref<SelectedViewMapper>({})
|
||||
|
||||
const availableViews = computed<Record<ProjectView, string>>(() => ({
|
||||
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
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
export const PROJECT_VIEWS = {
|
||||
PROJECT: 'project',
|
||||
LIST: 'list',
|
||||
GANTT: 'gantt',
|
||||
TABLE: 'table',
|
||||
KANBAN: 'kanban',
|
||||
|
|
Loading…
Reference in New Issue
Block a user