NIFI-2965:

- Ensuring the selection is cleared when going to the Process Group where the selected component policy is defined.
- Ensure that the selection context is updated when going to a component or group.

This closes #1174.
This commit is contained in:
Matt Gilman 2016-11-02 16:46:16 -04:00 committed by Pierre Villard
parent 89eb2ce28c
commit aa8ba0bd1c
2 changed files with 12 additions and 1 deletions

View File

@ -295,6 +295,9 @@ nf.Actions = (function () {
// select only the component/connection in question
selection.classed('selected', true);
nf.Actions.center(selection);
// inform Angular app that values have changed
nf.ng.Bridge.digest();
}
},

View File

@ -784,8 +784,16 @@ nf.PolicyManagement = (function () {
// build the mark up
return $('<span>Showing effective policy inherited from Process Group </span>').append($('<span class="link"></span>').text(processGroupName).on('click', function () {
// close the shell
$('#shell-close-button').click();
nf.CanvasUtils.enterGroup(processGroupId);
// load the correct group and unselect everything if necessary
nf.CanvasUtils.enterGroup(processGroupId).done(function () {
nf.CanvasUtils.getSelection().classed('selected', false);
// inform Angular app that values have changed
nf.ng.Bridge.digest();
});
})).append('<span>.</span>');
}
};