Remove instrument label for non-instrument blocks
This commit is contained in:
parent
328a34d6d0
commit
428e51f254
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue