Rename constant

This commit is contained in:
Ramon Wenger 2019-07-10 17:15:56 +02:00 committed by Christian Cueni
parent 9df8ef6423
commit e1936a33b1
1 changed files with 4 additions and 4 deletions

View File

@ -52,10 +52,10 @@
import CHAPTER_QUERY from '@/graphql/gql/chapterQuery.gql'; import CHAPTER_QUERY from '@/graphql/gql/chapterQuery.gql';
import DELETE_CONTENT_BLOCK_MUTATION from '@/graphql/gql/mutations/deleteContentBlock.gql'; import DELETE_CONTENT_BLOCK_MUTATION from '@/graphql/gql/mutations/deleteContentBlock.gql';
const INSTRUMENTS = { const instruments = {
base_communication: 'Sprache & Kommunikation', base_communication: 'Sprache & Kommunikation',
base_society: 'Gesellschaft' base_society: 'Gesellschaft'
} };
export default { export default {
props: ['contentBlock', 'parent'], props: ['contentBlock', 'parent'],
@ -88,11 +88,11 @@
}, },
subtitle() { subtitle() {
const contentType = this.contentBlock.type.toLowerCase() const contentType = this.contentBlock.type.toLowerCase()
if (!(contentType in INSTRUMENTS)) { if (!(contentType in instruments)) {
return '' return ''
} }
return `Instrument - ${INSTRUMENTS[contentType]}` return `Instrument - ${instruments[contentType]}`
} }
}, },