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 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>
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Reference in New Issue