From 8797a459b6a5c4516032260cc55663e08a2ab538 Mon Sep 17 00:00:00 2001 From: Sheshashailavas Chinthakayala Date: Mon, 12 Nov 2018 22:28:37 +0000 Subject: [CCSDK-683] fixed dg import from local git repo and also added option to view difference of json and xml since import Change-Id: I4e2616f1880805bd74031020418ba2776616cbfa Issue-ID: CCSDK-683 Signed-off-by: Sheshashailavas Chinthakayala --- dgbuilder/public/util/js/dgeToXml.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dgbuilder/public/util') 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"); -- cgit 1.2.3-korg