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 <[email protected]> Authored: Thu Feb 12 07:09:18 2015 -0500 Committer: Matt Gilman <[email protected]> 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();
