From 428e51f2548bcd3836e91b7f4d00e491476fb562 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Tue, 24 May 2022 14:36:42 +0200 Subject: [PATCH] Remove instrument label for non-instrument blocks --- client/src/components/ContentBlock.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/components/ContentBlock.vue b/client/src/components/ContentBlock.vue index 55dc2212..d56a10c8 100644 --- a/client/src/components/ContentBlock.vue +++ b/client/src/components/ContentBlock.vue @@ -129,7 +129,10 @@ }, instrumentLabel() { const contentType = this.contentBlock.type.toLowerCase(); - return instrumentCategory(contentType); + if (contentType.startsWith('base')) { // all instruments start with `base` + return instrumentCategory(contentType); + } + return ''; }, canEditContentBlock() { return this.contentBlock.mine && !this.contentBlock.indent;