mirror of https://github.com/apache/nifi.git
[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:
parent
21ed556691
commit
aef17f9a8b
|
@ -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 */
|
||||
|
|
|
@ -272,7 +272,10 @@ nf.HistoryTable = (function () {
|
|||
|
||||
// define a custom formatter for the more details column
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue