From 969679e43b82af0b9d217c3b971b751b4ded3eb2 Mon Sep 17 00:00:00 2001 From: Pierre Villard Date: Mon, 24 Jul 2023 15:16:30 +0200 Subject: [PATCH] NIFI-11846 - Change version should not show keep existing parameter context This closes #7517 Signed-off-by: David Handermann --- .../partials/canvas/import-flow-version-dialog.jsp | 4 ++-- .../src/main/webapp/js/nf/canvas/nf-flow-version.js | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/import-flow-version-dialog.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/import-flow-version-dialog.jsp index 1bb1eec152..b3513b4062 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/import-flow-version-dialog.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/import-flow-version-dialog.jsp @@ -45,7 +45,7 @@
-
+
Keep Existing Parameter Contexts
@@ -70,4 +70,4 @@
- \ No newline at end of file + diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-flow-version.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-flow-version.js index 7c37ec7252..9588722569 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-flow-version.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-flow-version.js @@ -175,6 +175,8 @@ $('#import-flow-version-container').hide(); $('#import-flow-version-label').text(''); + + $('#keep-parameter-context-container').hide(); }; /** @@ -782,6 +784,9 @@ }] }).show(); + // show the checkbox to keep existing parameter context + $('#keep-parameter-context-container').show(); + loadRegistries($('#import-flow-version-dialog'), registryCombo, bucketCombo, flowCombo, selectBucketImportVersion, function (bucketEntity) { return true; }).done(function () { @@ -1925,6 +1930,9 @@ $('#import-flow-version-container').show(); $('#import-flow-version-label').text(versionControlInformation.version); + // hide the checkbox to keep existing parameter context + $('#keep-parameter-context-container').hide(); + // record the versionControlInformation $('#import-flow-version-process-group-id').data('versionControlInformation', versionControlInformation).data('revision', groupVersionControlInformation.processGroupRevision).text(processGroupId);