[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;
}
#action-details-dialog {
width: 300px;
height: 500px;
}
div.action-detail {
margin-bottom: 5px;
margin-bottom: 15px;
}
div.history-details-name {
float: left;
color: #527991;
font-size: 10px;
font-weight: bold;
line-height: normal;
width: 100%;
margin-right: 10px;
font-size: 12px;
font-weight: 500;
font-family: Roboto Slab;
text-transform: capitalize;
padding-bottom: 4px;
color: #262626;
}
/* history table */

View File

@ -272,7 +272,10 @@ nf.HistoryTable = (function () {
// define a custom formatter for the more details column
var moreDetailsFormatter = function (row, cell, value, columnDef, dataContext) {
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