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:
Matt Gilman 2015-07-01 14:25:12 -04:00
parent e7c0461b15
commit 4fd1e9494e
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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: []
}));
});