[NIFI-3159] Add ellipsis to long PG name in access policies shell. This closes #1310

This commit is contained in:
Scott Aslan 2016-12-13 09:09:15 -05:00 committed by Matt Gilman
parent 45e4514a40
commit 868795cdaa
1 changed files with 15 additions and 10 deletions

View File

@ -759,18 +759,23 @@ 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();
return $('<span>Showing effective policy inherited from Process Group </span>')
.append( $('<span class="link ellipsis" style="max-width: 200px; vertical-align: top;"></span>')
.text(processGroupName)
.attr('title', processGroupName)
.on('click', function () {
// close the shell
$('#shell-close-button').click();
// load the correct group and unselect everything if necessary
nf.CanvasUtils.enterGroup(processGroupId).done(function () {
nf.CanvasUtils.getSelection().classed('selected', false);
// 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>');
// inform Angular app that values have changed
nf.ng.Bridge.digest();
});
})
).append('<span>.</span>');
}
};