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},
|
||||
computed: {
|
||||
isTaskPage() {
|
||||
return this.$route.name === 'task.detail' ||
|
||||
this.$route.name === 'task.list.detail' ||
|
||||
this.$route.name === 'task.gantt.detail' ||
|
||||
this.$route.name === 'task.kanban.detail' ||
|
||||
this.$route.name === 'task.detail'
|
||||
return [
|
||||
'task.detail',
|
||||
'task.list.detail',
|
||||
'task.gantt.detail',
|
||||
'task.kanban.detail',
|
||||
'task.detail',
|
||||
].includes(this.$route.name)
|
||||
},
|
||||
isListPage() {
|
||||
return this.$route.name.startsWith('list.')
|
||||
|
|
Loading…
Reference in New Issue