mirror of https://github.com/apache/nifi.git
NIFI-3707 Sort Attributes in FlowFile Details UI
Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com> This closes #1843.
This commit is contained in:
parent
49270f8a8c
commit
b64232117f
|
@ -462,7 +462,10 @@
|
|||
var attributesContainer = $('#flowfile-attributes-container');
|
||||
|
||||
// get any action details
|
||||
$.each(flowFile.attributes, function (attributeName, attributeValue) {
|
||||
var sortedAttributeNames = Object.keys(flowFile.attributes).sort();
|
||||
sortedAttributeNames.forEach(function (attributeName) {
|
||||
var attributeValue = flowFile.attributes[attributeName];
|
||||
|
||||
// create the attribute record
|
||||
var attributeRecord = $('<div class="attribute-detail"></div>')
|
||||
.append($('<div class="attribute-name">' + nfCommon.formatValue(attributeName) + '</div>').ellipsis())
|
||||
|
|
Loading…
Reference in New Issue