Github user scottyaslan commented on a diff in the pull request:
https://github.com/apache/nifi/pull/1585#discussion_r105747481
--- Diff:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-actions.js
---
@@ -1214,6 +1217,23 @@
},
/**
+ * Views the state for the specified processor.
+ *
+ * @param {selection} selection
+ */
+ changeVersion: function (selection) {
+ if (selection.size() !== 1 ||
!nf.CanvasUtils.isProcessor(selection)) {
+ return;
+ }
+
+ // get the processor data
+ var processor = selection.datum();
+
+ // attempt to change the version of the specified component
+ nf.ComponentVersion.promptForVersionChange(processor);
--- End diff --
We should not be calling anything from the global scope. Instead we should
have this module require('nf.ComponentVersion')...
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---