Repository: incubator-nifi Updated Branches: refs/heads/develop b7504ccb1 -> 89801675b
NIFI-313: - Ensuring the total number of templates remain correct after a deletion. Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/89801675 Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/89801675 Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/89801675 Branch: refs/heads/develop Commit: 89801675b4bf66ee106bb452ba89996e4f0be56e Parents: b7504cc Author: Matt Gilman <[email protected]> Authored: Tue Jun 2 11:57:07 2015 -0400 Committer: Matt Gilman <[email protected]> Committed: Tue Jun 2 11:57:07 2015 -0400 ---------------------------------------------------------------------- .../src/main/webapp/js/nf/templates/nf-templates-table.js | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/89801675/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/templates/nf-templates-table.js ---------------------------------------------------------------------- diff --git a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/templates/nf-templates-table.js b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/templates/nf-templates-table.js index 5f213fd..9ec742f 100644 --- a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/templates/nf-templates-table.js +++ b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/templates/nf-templates-table.js @@ -86,6 +86,9 @@ nf.TemplatesTable = (function () { var templatesGrid = $('#templates-table').data('gridInstance'); var templatesData = templatesGrid.getData(); templatesData.deleteItem(templateId); + + // update the total number of templates + $('#total-templates').text(templatesData.getItems().length); }).fail(nf.Common.handleAjaxError); };
