chore: simplify is task detail page check

This commit is contained in:
kolaente 2021-11-03 20:13:07 +01:00
parent a90b863590
commit a2c0846a03
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 7 additions and 5 deletions

View File

@ -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.')