mirror of https://github.com/apache/nifi.git
NIFI-313:
- Ensuring the total number of templates remain correct after a deletion.
This commit is contained in:
parent
b7504ccb10
commit
89801675b4
|
@ -86,6 +86,9 @@ nf.TemplatesTable = (function () {
|
||||||
var templatesGrid = $('#templates-table').data('gridInstance');
|
var templatesGrid = $('#templates-table').data('gridInstance');
|
||||||
var templatesData = templatesGrid.getData();
|
var templatesData = templatesGrid.getData();
|
||||||
templatesData.deleteItem(templateId);
|
templatesData.deleteItem(templateId);
|
||||||
|
|
||||||
|
// update the total number of templates
|
||||||
|
$('#total-templates').text(templatesData.getItems().length);
|
||||||
}).fail(nf.Common.handleAjaxError);
|
}).fail(nf.Common.handleAjaxError);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue