NIFI-1548 Fixing Controller Service Usage Button. This closes #245

Signed-off-by: Matt Gilman <matt.c.gilman@gmail.com>
This commit is contained in:
James Wing 2016-02-22 15:49:03 -08:00 committed by Matt Gilman
parent 5ee83574d8
commit 24a77755de
1 changed files with 22 additions and 2 deletions

View File

@ -767,7 +767,17 @@ nf.Settings = (function () {
} else if (controllerServicesGrid.getColumns()[args.cell].id === 'moreDetails') {
if (target.hasClass('view-controller-service')) {
nf.ControllerService.showDetails(controllerService);
}
} else if (target.hasClass('controller-service-usage')) {
// close the settings dialog
$('#shell-close-button').click();
// open the documentation for this controller service
nf.Shell.showPage('../nifi-docs/documentation?' + $.param({
select: nf.Common.substringAfterLast(controllerService.type, '.')
})).done(function() {
nf.Settings.showSettings();
});
}
}
});
@ -1413,7 +1423,17 @@ nf.Settings = (function () {
} else if (reportingTasksGrid.getColumns()[args.cell].id === 'moreDetails') {
if (target.hasClass('view-reporting-task')) {
nf.ReportingTask.showDetails(reportingTask);
}
} else if (target.hasClass('reporting-task-usage')) {
// close the settings dialog
$('#shell-close-button').click();
// open the documentation for this reporting task
nf.Shell.showPage('../nifi-docs/documentation?' + $.param({
select: nf.Common.substringAfterLast(reportingTask.type, '.')
})).done(function() {
nf.Settings.showSettings();
});
}
}
});