diff --git a/client/src/components/ContentBlock.vue b/client/src/components/ContentBlock.vue index ef34254c..cbd5d9a8 100644 --- a/client/src/components/ContentBlock.vue +++ b/client/src/components/ContentBlock.vue @@ -10,7 +10,7 @@
@@ -25,8 +25,7 @@ - + @@ -104,16 +103,19 @@ computed: { ...mapGetters(['editModule']), + canEditModule() { + return !this.contentBlock.indent && this.editModule; + }, specialClass() { - return `content-block--${this.contentBlock.type.toLowerCase()}` + return `content-block--${this.contentBlock.type.toLowerCase()}`; }, instrumentLabel() { - const contentType = this.contentBlock.type.toLowerCase() + const contentType = this.contentBlock.type.toLowerCase(); if (!(contentType in instruments)) { - return '' + return ''; } - return `Instrument - ${instruments[contentType]}` + return `Instrument - ${instruments[contentType]}`; }, canEditContentBlock() { return this.contentBlock.mine && !this.contentBlock.indent; @@ -159,7 +161,7 @@ contentList = []; return newContents; } else { - return [...newContents, content] + return [...newContents, content]; } } }, []);