From e1936a33b1a5b6601e8da96eab1f2ba35f63b1cc Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 10 Jul 2019 17:15:56 +0200 Subject: [PATCH] Rename constant --- client/src/components/ContentBlock.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/components/ContentBlock.vue b/client/src/components/ContentBlock.vue index b8f0bd84..db5a2082 100644 --- a/client/src/components/ContentBlock.vue +++ b/client/src/components/ContentBlock.vue @@ -52,10 +52,10 @@ import CHAPTER_QUERY from '@/graphql/gql/chapterQuery.gql'; import DELETE_CONTENT_BLOCK_MUTATION from '@/graphql/gql/mutations/deleteContentBlock.gql'; - const INSTRUMENTS = { + const instruments = { base_communication: 'Sprache & Kommunikation', base_society: 'Gesellschaft' - } + }; export default { props: ['contentBlock', 'parent'], @@ -88,11 +88,11 @@ }, subtitle() { const contentType = this.contentBlock.type.toLowerCase() - if (!(contentType in INSTRUMENTS)) { + if (!(contentType in instruments)) { return '' } - return `Instrument - ${INSTRUMENTS[contentType]}` + return `Instrument - ${instruments[contentType]}` } },