Commit d29bd59c authored by Conor Shipp's avatar Conor Shipp Committed by Evan W. Patton

Remove "Make Generic" button from Form blocks

#1928 fixed being able to use the typeblock to create generic blocks for the Form, but they could still be accessed by using the "Make Generic" context menu item.

This commit removes the "Make Generic" button from the Form blocks.
parent 4c86a2e1
...@@ -47,7 +47,7 @@ Blockly.ComponentBlock.COMPONENT_SELECTOR = "COMPONENT_SELECTOR"; ...@@ -47,7 +47,7 @@ Blockly.ComponentBlock.COMPONENT_SELECTOR = "COMPONENT_SELECTOR";
* @param {Array.<{enabled,text,callback}>} options the menu options * @param {Array.<{enabled,text,callback}>} options the menu options
*/ */
Blockly.ComponentBlock.addGenericOption = function(block, options) { Blockly.ComponentBlock.addGenericOption = function(block, options) {
if (block.type === 'component_event' && block.isGeneric) { if ((block.type === 'component_event' && block.isGeneric) || block.typeName === 'Form') {
return; // Cannot make a generic component_event specific for now... return; // Cannot make a generic component_event specific for now...
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment