Repository: nifi Updated Branches: refs/heads/master 49270f8a8 -> b64232117
NIFI-3707 Sort Attributes in FlowFile Details UI Signed-off-by: Pierre Villard <[email protected]> This closes #1843. Project: http://git-wip-us.apache.org/repos/asf/nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/b6423211 Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/b6423211 Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/b6423211 Branch: refs/heads/master Commit: b64232117f2273c36473122bd6378aa013be458d Parents: 49270f8 Author: James Wing <[email protected]> Authored: Mon May 22 18:07:43 2017 -0700 Committer: Pierre Villard <[email protected]> Committed: Tue May 23 18:06:18 2017 +0200 ---------------------------------------------------------------------- .../src/main/webapp/js/nf/canvas/nf-queue-listing.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/nifi/blob/b6423211/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-queue-listing.js ---------------------------------------------------------------------- diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-queue-listing.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-queue-listing.js index b9714ef..5528105 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-queue-listing.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-queue-listing.js @@ -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())
