NIFI-259:

- Only providing the View State menu item for DFMs.
This commit is contained in:
Matt Gilman 2016-01-14 15:36:57 -05:00
parent 4236125f2b
commit 5b62ff0fc3

View File

@ -242,6 +242,11 @@ nf.ContextMenu = (function () {
return false;
}
// ensure the user is DFM
if (nf.Common.isDFM() === false) {
return false;
}
if (nf.CanvasUtils.isProcessor(selection)) {
var processorData = selection.datum();
return processorData.component.persistsState === true;