js code changes to show/hide menu option for model type creation
@@ -338,11 +338,17 @@ function updateSelectionMenuContext() {
uiActionStates.setModelProgramFileType.fileMenu.hidden = true;
uiActionStates.setModelInstanceFileType.fileMenu.hidden = true;
}
- else if (logicalFileTypeToSet !=="ModelProgramOrInstanceLogicalFile") {
+ else {
+ if (logicalFileTypeToSet !== "ModelProgramLogicalFile" &&
+ logicalFileTypeToSet !== "ModelProgramOrInstanceLogicalFile") {
uiActionStates.setModelProgramFileType.fileMenu.hidden = true;
+ }
+ if (logicalFileTypeToSet !=="ModelInstanceLogicalFile" &&
+ logicalFileTypeToSet !=="ModelProgramOrInstanceLogicalFile") {
uiActionStates.setModelInstanceFileType.fileMenu.hidden = true;
}
}
+ }
// ------------- The item selected is a file -------------
else {
const logicalFileType = $(selected).find(".fb-logical-file-type").attr("data-logical-file-type").trim();
