summaryrefslogtreecommitdiffstats
path: root/dgbuilder/public/util
diff options
context:
space:
mode:
authorSheshashailavas Chinthakayala <sc2914@att.com>2018-11-12 22:01:06 +0000
committerSheshashailavas Chinthakayala <sc2914@att.com>2018-11-12 22:02:12 +0000
commit3535a63cbbe1a41897a652bf1937368c9733cc90 (patch)
treef3ce60c1127a07370c2c9928b730d7984fd0f639 /dgbuilder/public/util
parent7e9bf97e8ae8dd7a4da324af175c7969fa0f9c24 (diff)
[CCSDK-680] fixed dg import from local git repo
and also added option to view difference of json and xml since import Change-Id: I9372c18658207ef55a568f219716a0b29f4f5eae Issue-ID: CCSDK-680 Signed-off-by: Sheshashailavas Chinthakayala <sc2914@att.com>
Diffstat (limited to 'dgbuilder/public/util')
-rw-r--r--dgbuilder/public/util/js/dgeToXml.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/dgbuilder/public/util/js/dgeToXml.js b/dgbuilder/public/util/js/dgeToXml.js
index e99d6495..7e5c9721 100644
--- a/dgbuilder/public/util/js/dgeToXml.js
+++ b/dgbuilder/public/util/js/dgeToXml.js
@@ -773,6 +773,11 @@ var jqxhr = $.post( "/getSharedFlow",{"filePath":filePath})
.done(function(data) {
$( "#dgflow-browser-dialog").dialog("close");
var migratedNodes = migrateNodes(data);
+ var nodeSet = getCurrentFlowNodeSet();
+ //console.dir(nodeSet);
+ if(nodeSet != null && nodeSet.length == 0){
+ RED.view.setIsImportAction(true);
+ }
//RED.view.importNodes(data)
RED.view.importNodes(JSON.stringify(migratedNodes));
//console.log( "import done");