[NIFI-3170] remove action details if user does not have read perms, also update action details styles to match other dialogs. This closes #1322

This commit is contained in:
Scott Aslan 2016-12-13 10:45:37 -05:00 committed by Matt Gilman
parent 21ed556691
commit aef17f9a8b
2 changed files with 16 additions and 9 deletions

View File

@ -128,18 +128,22 @@
overflow-y: auto; overflow-y: auto;
} }
#action-details-dialog {
width: 300px;
height: 500px;
}
div.action-detail { div.action-detail {
margin-bottom: 5px; margin-bottom: 15px;
} }
div.history-details-name { div.history-details-name {
float: left; font-size: 12px;
color: #527991; font-weight: 500;
font-size: 10px; font-family: Roboto Slab;
font-weight: bold; text-transform: capitalize;
line-height: normal; padding-bottom: 4px;
width: 100%; color: #262626;
margin-right: 10px;
} }
/* history table */ /* history table */

View File

@ -272,7 +272,10 @@ nf.HistoryTable = (function () {
// define a custom formatter for the more details column // define a custom formatter for the more details column
var moreDetailsFormatter = function (row, cell, value, columnDef, dataContext) { var moreDetailsFormatter = function (row, cell, value, columnDef, dataContext) {
return '<div title="View Details" class="pointer show-action-details fa fa-info-circle" style="margin-top: 4px;"></div>'; if(dataContext.canRead === true) {
return '<div title="View Details" class="pointer show-action-details fa fa-info-circle" style="margin-top: 4px;"></div>';
}
return "";
}; };
// define how general values are formatted // define how general values are formatted