[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,7 +759,11 @@ 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>')
.append( $('<span class="link ellipsis" style="max-width: 200px; vertical-align: top;"></span>')
.text(processGroupName)
.attr('title', processGroupName)
.on('click', function () {
// close the shell // close the shell
$('#shell-close-button').click(); $('#shell-close-button').click();
@ -770,7 +774,8 @@ nf.PolicyManagement = (function () {
// 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>');
} }
}; };