Browse Source

Merge pull request #919 from doccano/fix/#907

Fix the header behavior in the error page
pull/932/head
Hiroki Nakayama 4 years ago
committed by GitHub
parent
commit
a48ac16d27
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions
  1. 2
      frontend/components/organisms/layout/TheHeader.vue
  2. 1
      frontend/layouts/default.vue
  3. 1
      frontend/layouts/demo.vue

2
frontend/components/organisms/layout/TheHeader.vue

@ -118,7 +118,7 @@ export default {
...mapGetters('projects', ['currentProject']), ...mapGetters('projects', ['currentProject']),
isIndividualProject() { isIndividualProject() {
return this.$route.name.startsWith('projects-id')
return this.$route.name && this.$route.name.startsWith('projects-id')
} }
}, },

1
frontend/layouts/default.vue

@ -11,6 +11,7 @@ import TheFooter from '@/components/organisms/layout/TheFooter'
import TheHeader from '@/components/organisms/layout/TheHeader' import TheHeader from '@/components/organisms/layout/TheHeader'
export default { export default {
middleware: ['check-auth'],
components: { components: {
TheFooter, TheFooter,
TheHeader TheHeader

1
frontend/layouts/demo.vue

@ -9,6 +9,7 @@
import TheHeader from '~/components/organisms/layout/TheHeader' import TheHeader from '~/components/organisms/layout/TheHeader'
export default { export default {
middleware: ['check-auth'],
components: { components: {
TheHeader TheHeader
} }

Loading…
Cancel
Save