From ad6af1d94111e9d24989701a153e410d1db8e4e9 Mon Sep 17 00:00:00 2001 From: Scott Aslan Date: Fri, 2 Jun 2017 13:23:31 -0400 Subject: [PATCH] NIFI-3994 Add Create Template to the context menu Signed-off-by: James Wing This closes #1883. --- .../nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c5e05f942e..09316ffc74 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)); }; /**