Rename constant
This commit is contained in:
parent
9df8ef6423
commit
e1936a33b1
|
|
@ -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]}`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue