nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcgil...@apache.org
Subject [05/22] incubator-nifi git commit: NIFI-341: - Ensuring existing selection is cleared when adding a new label to the graph.
Date Tue, 17 Feb 2015 17:37:32 GMT
NIFI-341:
- Ensuring existing selection is cleared when adding a new label to the graph.

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

Branch: refs/heads/NIFI-250
Commit: e0390ec3f4c9f90112addb00eeaa5882a647cdfc
Parents: 685035a
Author: Matt Gilman <matt.c.gilman@gmail.com>
Authored: Thu Feb 12 07:09:18 2015 -0500
Committer: Matt Gilman <matt.c.gilman@gmail.com>
Committed: Thu Feb 12 07:09:18 2015 -0500

----------------------------------------------------------------------
 .../src/main/webapp/js/nf/canvas/nf-canvas-toolbox.js            | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/e0390ec3/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-toolbox.js
----------------------------------------------------------------------
diff --git a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-toolbox.js
b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-toolbox.js
index 8d005e2..3255641 100644
--- a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-toolbox.js
+++ b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-toolbox.js
@@ -882,7 +882,9 @@ nf.CanvasToolbox = (function () {
                 nf.Client.setRevision(response.revision);
 
                 // add the label to the graph
-                nf.Label.add(response.label, true);
+                nf.Graph.add({
+                    'labels': [response.label]
+                }, true);
 
                 // update the birdseye
                 nf.Birdseye.refresh();


Mime
View raw message