This is an automated email from the ASF dual-hosted git repository.
mcgilman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/master by this push:
new 7e9277a NIFI-6671 - sort parameters by name in the 'Reference
Parameter' dropdown.
7e9277a is described below
commit 7e9277a2bcf70ad800e6c4e143e870f1dd0d0b33
Author: Rob Fellows <[email protected]>
AuthorDate: Fri Sep 13 16:38:26 2019 -0400
NIFI-6671 - sort parameters by name in the 'Reference Parameter' dropdown.
This closes #3736
---
.../src/main/webapp/js/jquery/propertytable/jquery.propertytable.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.js
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.js
index 0b34bd1..369551b 100644
---
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.js
+++
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.js
@@ -615,7 +615,8 @@
// load the parameters
parametersLoaded = new $.Deferred(function (deferred) {
loadParameters(propertyDescriptor, function
(parameterListing) {
- parameterListing.forEach(function (parameter) {
+ var sortedParams = _.sortBy(parameterListing,
'name');
+ sortedParams.forEach(function (parameter) {
parameterOptions.push({
text: parameter.name,
value: '#{' + parameter.name + '}',