Skip to content

Commit

Permalink
fix #741
Browse files Browse the repository at this point in the history
  • Loading branch information
umut-er committed Aug 9, 2024
1 parent 0d21d45 commit 6ef7483
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/js/app-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ module.exports = function() {
promptInvalidURLWarning = appUtilities.promptInvalidURLWarning = new BackboneViews.PromptInvalidURLWarning({el: '#prompt-invalidURL-table'});
promptInvalidImageWarning = appUtilities.promptInvalidImageWarning = new BackboneViews.PromptInvalidImageWarning({el: '#prompt-invalidImage-table'});
promptInvalidEdgeWarning = appUtilities.promptInvalidEdgeWarning = new BackboneViews.PromptInvalidEdgeWarning({el: '#prompt-invalidEdge-table'});
exportErrorView = appUtilities.promptInvalidEdgeWarning = new BackboneViews.ExportErrorView({el: "#exportError-table",});
toolbarButtonsAndMenu();
keyboardShortcuts();
// Events triggered by sbgnviz module
Expand Down Expand Up @@ -1734,11 +1735,12 @@ module.exports = function() {

var mapType = chiseInstance.getMapType();

if(mapType == 'SIF' || mapType == 'AF'){
return;
if(mapType != 'PD' && mapType != 'HybridSbgn' && mapType != 'HybridAny' ){
exportErrorView.render();
document.getElementById("export-error-message").innerText = "SBGN Bricks can only be used with PD maps!";
}

reactionTemplateView.render();
else
reactionTemplateView.render();
});

$("#clone-selected").click(function (e) {
Expand Down

0 comments on commit 6ef7483

Please sign in to comment.