Remove instrument label for non-instrument blocks

This commit is contained in:
Ramon Wenger 2022-05-24 14:36:42 +02:00
parent 328a34d6d0
commit 428e51f254
1 changed files with 4 additions and 1 deletions

View File

@ -129,7 +129,10 @@
}, },
instrumentLabel() { instrumentLabel() {
const contentType = this.contentBlock.type.toLowerCase(); const contentType = this.contentBlock.type.toLowerCase();
return instrumentCategory(contentType); if (contentType.startsWith('base')) { // all instruments start with `base`
return instrumentCategory(contentType);
}
return '';
}, },
canEditContentBlock() { canEditContentBlock() {
return this.contentBlock.mine && !this.contentBlock.indent; return this.contentBlock.mine && !this.contentBlock.indent;