[NIFI-2679] User is now able to disable/enable processors that are invalid or stopped through Operate palette. This closes #973

This commit is contained in:
Scott Aslan 2016-08-30 15:16:59 -04:00 committed by Matt Gilman
parent 1213b46632
commit 648ddb6158
1 changed files with 2 additions and 1 deletions

View File

@ -797,7 +797,8 @@ nf.CanvasUtils = (function () {
// ensure its a processor, input port, or output port and supports modification and is stopped (can disable) // ensure its a processor, input port, or output port and supports modification and is stopped (can disable)
return ((nf.CanvasUtils.isProcessor(selected) || nf.CanvasUtils.isInputPort(selected) || nf.CanvasUtils.isOutputPort(selected)) && return ((nf.CanvasUtils.isProcessor(selected) || nf.CanvasUtils.isInputPort(selected) || nf.CanvasUtils.isOutputPort(selected)) &&
nf.CanvasUtils.supportsModification(selected) && nf.CanvasUtils.supportsModification(selected) &&
selectedData.status.aggregateSnapshot.runStatus === 'Stopped'); (selectedData.status.aggregateSnapshot.runStatus === 'Stopped' ||
selectedData.status.aggregateSnapshot.runStatus === 'Invalid'));
}); });
}, },