Make sure functions work in the description map as well
This commit is contained in:
parent
45bc0d8dd8
commit
64c9081587
2 changed files with 7 additions and 2 deletions
|
@ -31,7 +31,7 @@
|
||||||
<thead>
|
<thead>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
<th>Date/Time</th>
|
<th>Date/Time</th>
|
||||||
<th>User</th>
|
<th>User/Token</th>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
|
@ -788,8 +788,13 @@ quayApp.directive('logsView', function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.getDescription = function(log) {
|
$scope.getDescription = function(log) {
|
||||||
var description = logDescriptions[log.kind] || logTitles[log.kind] || log.kind;
|
|
||||||
log.metadata['_ip'] = log.ip;
|
log.metadata['_ip'] = log.ip;
|
||||||
|
|
||||||
|
var description = logDescriptions[log.kind] || logTitles[log.kind] || log.kind;
|
||||||
|
if (typeof description != 'string') {
|
||||||
|
description = description(log.metadata);
|
||||||
|
}
|
||||||
|
|
||||||
for (var key in log.metadata) {
|
for (var key in log.metadata) {
|
||||||
if (log.metadata.hasOwnProperty(key)) {
|
if (log.metadata.hasOwnProperty(key)) {
|
||||||
var markedDown = getMarkedDown(log.metadata[key].toString());
|
var markedDown = getMarkedDown(log.metadata[key].toString());
|
||||||
|
|
Reference in a new issue