You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@edgent.apache.org by qu...@apache.org on 2016/09/16 14:15:04 UTC

[2/2] incubator-edgent git commit: [EDGENT-168] Console: Fix missing source/target stream tags

[EDGENT-168] Console: Fix missing source/target stream tags


Project: http://git-wip-us.apache.org/repos/asf/incubator-edgent/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-edgent/commit/6ea69f07
Tree: http://git-wip-us.apache.org/repos/asf/incubator-edgent/tree/6ea69f07
Diff: http://git-wip-us.apache.org/repos/asf/incubator-edgent/diff/6ea69f07

Branch: refs/heads/master
Commit: 6ea69f07b960a635bdff31e79ada7d5b25900c5a
Parents: f49b957
Author: Queenie Ma <qu...@gmail.com>
Authored: Wed Sep 14 12:34:12 2016 -0700
Committer: Queenie Ma <qu...@gmail.com>
Committed: Thu Sep 15 12:13:56 2016 -0700

----------------------------------------------------------------------
 console/servlets/webapp_content/js/index.js | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-edgent/blob/6ea69f07/console/servlets/webapp_content/js/index.js
----------------------------------------------------------------------
diff --git a/console/servlets/webapp_content/js/index.js b/console/servlets/webapp_content/js/index.js
index acd5a09..1649b19 100644
--- a/console/servlets/webapp_content/js/index.js
+++ b/console/servlets/webapp_content/js/index.js
@@ -707,16 +707,16 @@ var makeRows = function() {
 		 n.targetLinks.forEach(function(trg){
 			sources.push(trg.sourceIdx.idx);
  	  		if (trg.tags && trg.tags.length > 0) {
-   	  			sourceStreams = trg.tags;
+   	  			sourceStreams.push(trg.tags);
    	  		}
 		 });
 		 var targets = [];
 		 var targetStreams = [];
 		 n.sourceLinks.forEach(function(src){
-			 targets.push(src.targetIdx.idx);
-	   	  		if (src.tags && src.tags.length > 0) {
-	   	  			targetStreams = src.tags;
-	   	  		}
+			targets.push(src.targetIdx.idx);
+   	  		if (src.tags && src.tags.length > 0) {
+   	  			targetStreams.push(src.tags);
+   	  		}
 		 });
    	  	var kind = parseOpletKind(n.invocation.kind);
 
@@ -975,7 +975,7 @@ var renderGraph = function(jobId, counterMetrics, bIsNewJob) {
 		d.targetLinks.forEach(function(trg){
 			sources.push(trg.sourceIdx.idx.toString());
  	  		if (trg.tags && trg.tags.length > 0) {
-   	  			sourceStreams = trg.tags;
+   	  			sourceStreams.push(trg.tags);
    	  		}
 		});
 		var targets = [];
@@ -983,9 +983,9 @@ var renderGraph = function(jobId, counterMetrics, bIsNewJob) {
 
 		d.sourceLinks.forEach(function(src){
 			targets.push(src.targetIdx.idx);
-	   	  		if (src.tags && src.tags.length > 0) {
-	   	  			targetStreams = src.tags;
-	   	  		}
+   	  		if (src.tags && src.tags.length > 0) {
+   	  			targetStreams.push(src.tags);
+   	  		}
 		});
 
 		valueStr += "<td class='smallCenter'>" + sources.toString() + "</td>";