Repository: nifi Updated Branches: refs/heads/master 5a6373b16 -> 3c862a151
NIFI-3334 Fix Update Run Duration. This closes #1572 Project: http://git-wip-us.apache.org/repos/asf/nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/3c862a15 Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/3c862a15 Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/3c862a15 Branch: refs/heads/master Commit: 3c862a151536f89155e0e132e0393f5e21477ae5 Parents: 5a6373b Author: James Wing <[email protected]> Authored: Mon Mar 6 21:05:21 2017 -0800 Committer: Matt Gilman <[email protected]> Committed: Thu Mar 9 08:13:46 2017 -0500 ---------------------------------------------------------------------- .../main/webapp/js/nf/canvas/nf-processor-configuration.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/nifi/blob/3c862a15/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-processor-configuration.js ---------------------------------------------------------------------- diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-processor-configuration.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-processor-configuration.js index d532eac..c26969e 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-processor-configuration.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-processor-configuration.js @@ -289,8 +289,10 @@ /** * Marshals the data that will be used to update the processor's configuration. + * + * @param {object} processor */ - var marshalDetails = function () { + var marshalDetails = function (processor) { // create the config dto var processorConfigDto = {}; @@ -333,7 +335,7 @@ processorConfigDto['comments'] = $('#processor-comments').val(); // run duration - if ($('#run-duration-setting-container').is(':visible')) { + if (processor.supportsBatching === true) { var runDurationIndex = $('#run-duration-slider').slider('value'); processorConfigDto['runDurationMillis'] = RUN_DURATION_VALUES[runDurationIndex]; } @@ -484,7 +486,7 @@ */ var saveProcessor = function (processor) { // marshal the settings and properties and update the processor - var updatedProcessor = marshalDetails(); + var updatedProcessor = marshalDetails(processor); // ensure details are valid as far as we can tell if (validateDetails(updatedProcessor)) {
