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;
|
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 */
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue