1
0

feat: don't open task detail in modal for list and table view

This commit is contained in:
Dominik Pschenitschni
2022-01-19 23:58:54 +01:00
parent 3d420c3770
commit de626eab31
5 changed files with 32 additions and 30 deletions

View File

@ -181,7 +181,6 @@
<script setup lang="ts">
import { toRef, computed, Ref } from 'vue'
import { useRouter } from 'vue-router'
import { useStorage } from '@vueuse/core'
@ -273,14 +272,15 @@ function sort(property : keyof SortBy) {
}
}
const router = useRouter()
// TODO: re-enable opening task detail in modal
// const router = useRouter()
const taskDetailRoutes = computed(() => Object.fromEntries(
tasks.value.map(({id}) => ([
id,
{
name: 'task.detail',
params: { id },
state: { backdropView: router.currentRoute.value.fullPath },
// state: { backdropView: router.currentRoute.value.fullPath },
},
])),
))