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