NIFI-3994 Add Create Template to the context menu

Signed-off-by: James Wing <jvwing@gmail.com>

This closes #1883.
This commit is contained in:
Scott Aslan 2017-06-02 13:23:31 -04:00 committed by James Wing
parent 5a7e6c6ac1
commit ad6af1d941
1 changed files with 1 additions and 1 deletions

View File

@ -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));
};
/**