Add double-click shortcut to RPG

Signed-off-by: Scott Aslan <[email protected]>

This closes #2009


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

Branch: refs/heads/master
Commit: bcf60aa556ca61029025bb10f04d011018e056a0
Parents: ef9cb5b
Author: yuri1969 <[email protected]>
Authored: Thu Jul 20 23:57:44 2017 +0200
Committer: Scott Aslan <[email protected]>
Committed: Mon Jul 31 10:58:49 2017 -0400

----------------------------------------------------------------------
 .../nifi-web-ui/src/main/webapp/js/nf/canvas/nf-graph.js      | 2 +-
 .../src/main/webapp/js/nf/canvas/nf-remote-process-group.js   | 7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/bcf60aa5/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-graph.js
----------------------------------------------------------------------
diff --git 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-graph.js
 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-graph.js
index 0382a39..e7a62bd 100644
--- 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-graph.js
+++ 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-graph.js
@@ -204,7 +204,7 @@
             nfLabel.init(nfConnectable, nfDraggable, nfSelectable, 
nfContextMenu, nfQuickSelect);
             nfFunnel.init(nfConnectable, nfDraggable, nfSelectable, 
nfContextMenu);
             nfPort.init(nfConnectable, nfDraggable, nfSelectable, 
nfContextMenu, nfQuickSelect);
-            nfRemoteProcessGroup.init(nfConnectable, nfDraggable, 
nfSelectable, nfContextMenu);
+            nfRemoteProcessGroup.init(nfConnectable, nfDraggable, 
nfSelectable, nfContextMenu, nfQuickSelect);
             nfProcessGroup.init(nfConnectable, nfDraggable, nfSelectable, 
nfContextMenu);
             nfProcessor.init(nfConnectable, nfDraggable, nfSelectable, 
nfContextMenu, nfQuickSelect);
             nfConnection.init(nfSelectable, nfContextMenu, nfQuickSelect, 
nfConnectionConfiguration);

http://git-wip-us.apache.org/repos/asf/nifi/blob/bcf60aa5/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-remote-process-group.js
----------------------------------------------------------------------
diff --git 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-remote-process-group.js
 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-remote-process-group.js
index 34005da..a71b1b8 100644
--- 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-remote-process-group.js
+++ 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-remote-process-group.js
@@ -50,6 +50,7 @@
     var nfConnectable;
     var nfDraggable;
     var nfSelectable;
+    var nfQuickSelect;
     var nfContextMenu;
 
     var PREVIEW_NAME_LENGTH = 30;
@@ -178,7 +179,7 @@
             });
 
         // always support selection
-        
remoteProcessGroup.call(nfSelectable.activate).call(nfContextMenu.activate);
+        
remoteProcessGroup.call(nfSelectable.activate).call(nfContextMenu.activate).call(nfQuickSelect.activate);
     };
 
     // attempt of space between component count and icon for process group 
contents
@@ -863,12 +864,14 @@
          * @param nfDraggableRef   The nfDraggable module.
          * @param nfSelectableRef   The nfSelectable module.
          * @param nfContextMenuRef   The nfContextMenu module.
+         * @param nfQuickSelectRef   The nfQuickSelect module.
          */
-        init: function (nfConnectableRef, nfDraggableRef, nfSelectableRef, 
nfContextMenuRef) {
+        init: function (nfConnectableRef, nfDraggableRef, nfSelectableRef, 
nfContextMenuRef, nfQuickSelectRef) {
             nfConnectable = nfConnectableRef;
             nfDraggable = nfDraggableRef;
             nfSelectable = nfSelectableRef;
             nfContextMenu = nfContextMenuRef;
+            nfQuickSelect = nfQuickSelectRef;
 
             remoteProcessGroupMap = d3.map();
             removedCache = d3.map();

Reply via email to