Repository: nifi
Updated Branches:
  refs/heads/master 5a7e6c6ac -> ad6af1d94


NIFI-3994 Add Create Template to the context menu

Signed-off-by: James Wing <[email protected]>

This closes #1883.


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

Branch: refs/heads/master
Commit: ad6af1d94111e9d24989701a153e410d1db8e4e9
Parents: 5a7e6c6
Author: Scott Aslan <[email protected]>
Authored: Fri Jun 2 13:23:31 2017 -0400
Committer: James Wing <[email protected]>
Committed: Sat Jun 17 16:46:31 2017 -0700

----------------------------------------------------------------------
 .../nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/ad6af1d9/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js
----------------------------------------------------------------------
diff --git 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js
 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js
index c5e05f9..09316ff 100644
--- 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js
+++ 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js
@@ -88,7 +88,7 @@
      * @param {selection} selection         The selection of currently 
selected components
      */
     var canCreateTemplate = function (selection) {
-        return nfCanvasUtils.canWrite() && (selection.empty() && 
nfCanvasUtils.canRead(selection));
+        return nfCanvasUtils.canWrite() && (selection.empty() || 
nfCanvasUtils.canRead(selection));
     };
 
     /**

Reply via email to