enable monitors for dynamic extension blocks

This commit is contained in:
Christopher Willis-Ford committed 2019-05-28 11:45:57 -07:00
1 parent ebe310bc65
commit 38455a7108
1 file changed
+3
+3
View File
@@ -98,6 +98,9 @@ const defineDynamicBlock = (ScratchBlocks, categoryInfo, staticBlockInfo, extend
case BlockType.REPORTER:
this.setOutput('String'); // TODO: distinguish number & string here?
this.setOutputShape(ScratchBlocks.OUTPUT_SHAPE_ROUND);
if (!blockInfo.disableMonitor) {
this.setCheckboxInFlyout(true);
}
break;
case BlockType.BOOLEAN:
this.setOutput('Boolean');