mirror of
https://github.com/apache/nifi.git
synced 2025-02-16 15:06:00 +00:00
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:
parent
5a7e6c6ac1
commit
ad6af1d941
@ -88,7 +88,7 @@
|
|||||||
* @param {selection} selection The selection of currently selected components
|
* @param {selection} selection The selection of currently selected components
|
||||||
*/
|
*/
|
||||||
var canCreateTemplate = function (selection) {
|
var canCreateTemplate = function (selection) {
|
||||||
return nfCanvasUtils.canWrite() && (selection.empty() && nfCanvasUtils.canRead(selection));
|
return nfCanvasUtils.canWrite() && (selection.empty() || nfCanvasUtils.canRead(selection));
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user