summaryrefslogtreecommitdiffstats
path: root/dgbuilder/public/red/ui/library.js
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2018-11-19 22:38:06 +0000
committerGerrit Code Review <gerrit@onap.org>2018-11-19 22:38:06 +0000
commitfc59bbb6279e492dea2fa361c7080163f3f888ea (patch)
tree8a71a25cb3f68d728bc2c2b0187baabcda342494 /dgbuilder/public/red/ui/library.js
parentc125359c8fe20863d8773ab31ceee67660328093 (diff)
parent8797a459b6a5c4516032260cc55663e08a2ab538 (diff)
Merge "[CCSDK-683] fixed dg import from local git repo"
Diffstat (limited to 'dgbuilder/public/red/ui/library.js')
-rw-r--r--dgbuilder/public/red/ui/library.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/dgbuilder/public/red/ui/library.js b/dgbuilder/public/red/ui/library.js
index 10c99261..b3a556d7 100644
--- a/dgbuilder/public/red/ui/library.js
+++ b/dgbuilder/public/red/ui/library.js
@@ -51,6 +51,11 @@ RED.library = (function() {
a.flowName = root+(root!==""?"/":"")+data.f[i];
a.onclick = function() {
$.get('library/flows/'+this.flowName, function(data) {
+ var nodeSet = getCurrentFlowNodeSet();
+ //console.dir(nodeSet);
+ if(nodeSet != null && nodeSet.length == 0){
+ RED.view.setIsImportAction(true);
+ }
RED.view.importNodes(data);
});
};