forked from vikunja/frontend
chore: simplify is task detail page check
This commit is contained in:
parent
a90b863590
commit
a2c0846a03
|
@ -90,11 +90,13 @@ export default {
|
||||||
components: {Shortcut},
|
components: {Shortcut},
|
||||||
computed: {
|
computed: {
|
||||||
isTaskPage() {
|
isTaskPage() {
|
||||||
return this.$route.name === 'task.detail' ||
|
return [
|
||||||
this.$route.name === 'task.list.detail' ||
|
'task.detail',
|
||||||
this.$route.name === 'task.gantt.detail' ||
|
'task.list.detail',
|
||||||
this.$route.name === 'task.kanban.detail' ||
|
'task.gantt.detail',
|
||||||
this.$route.name === 'task.detail'
|
'task.kanban.detail',
|
||||||
|
'task.detail',
|
||||||
|
].includes(this.$route.name)
|
||||||
},
|
},
|
||||||
isListPage() {
|
isListPage() {
|
||||||
return this.$route.name.startsWith('list.')
|
return this.$route.name.startsWith('list.')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user