mirror of https://github.com/apache/nifi.git
NIFI-694:
- Fixing bug when clearing bulletins from the reporting task table. - Allowed ENABLING state to trigger transition to next step of the enable/disable request.
This commit is contained in:
parent
e7c0461b15
commit
4fd1e9494e
|
@ -591,9 +591,9 @@ nf.ControllerService = (function () {
|
|||
}
|
||||
}
|
||||
|
||||
// the condition is met once the service is ENABLED/DISABLED
|
||||
// the condition is met once the service is (ENABLING or ENABLED)/DISABLED
|
||||
if (enabled) {
|
||||
return service.state === 'ENABLED';
|
||||
return service.state === 'ENABLING' || service.state === 'ENABLED';
|
||||
} else {
|
||||
return service.state === 'DISABLED';
|
||||
}
|
||||
|
@ -828,7 +828,7 @@ nf.ControllerService = (function () {
|
|||
var notEnabled = false;
|
||||
$.each(referencingComponents, function(_, referencingComponent) {
|
||||
if (referencingComponent.referenceType === 'ControllerService') {
|
||||
if (referencingComponent.state !== 'ENABLED') {
|
||||
if (referencingComponent.state !== 'ENABLING' && referencingComponent.state !== 'ENABLED') {
|
||||
notEnabled = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -1741,7 +1741,7 @@ nf.Settings = (function () {
|
|||
// if there are no bulletins clear all
|
||||
var reportingTasks = reportingTasksData.getItems();
|
||||
$.each(reportingTasks, function(_, reportingTask) {
|
||||
controllerServicesData.updateItem(reportingTask.id, $.extend(reportingTask, {
|
||||
reportingTasksData.updateItem(reportingTask.id, $.extend(reportingTask, {
|
||||
bulletins: []
|
||||
}));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue