This is an automated email from the ASF dual-hosted git repository.

pvillard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new 1e1c446  NIFI-8628 - Variable Registry - Variable count doesn't reset 
when opening the variable dialog
1e1c446 is described below

commit 1e1c4462431776716b731bb59abe022be2ff70bb
Author: s9514171 <[email protected]>
AuthorDate: Tue May 25 10:26:11 2021 +0000

    NIFI-8628 - Variable Registry - Variable count doesn't reset when opening 
the variable dialog
    
    Signed-off-by: Pierre Villard <[email protected]>
    
    This closes #5097.
---
 .../nifi-web-ui/src/main/webapp/js/nf/canvas/nf-variable-registry.js   | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-variable-registry.js
 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-variable-registry.js
index abc07e4..3b5d930 100644
--- 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-variable-registry.js
+++ 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-variable-registry.js
@@ -995,6 +995,8 @@
             url: '../nifi-api/process-groups/' + 
encodeURIComponent(processGroupId) + '/variable-registry',
             dataType: 'json'
         }).done(function (response) {
+            variablesCount = 0;
+
             
$('#process-group-variable-registry').text(getScopeLabel(processGroupId));
             
$('#variable-registry-process-group-id').text(processGroupId).data('revision', 
response.processGroupRevision);
 
@@ -1567,6 +1569,7 @@
 
         var variableGrid = $('#variable-registry-table').data('gridInstance');
         var variableData = variableGrid.getData();
+        variableGrid.setSelectedRows([]);
         variableData.setItems([]);
 
         var affectedProcessorContainer = 
$('#variable-registry-affected-processors');

Reply via email to