You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by sc...@apache.org on 2019/09/16 15:16:58 UTC
[nifi] branch master updated: NIFI-6659 - Open create new parameter
context dialog in edit mode.
This is an automated email from the ASF dual-hosted git repository.
scottyaslan 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 9e2a959 NIFI-6659 - Open create new parameter context dialog in edit mode.
9e2a959 is described below
commit 9e2a959778cdd7b6891937d37a52cc57f8b7405e
Author: Rob Fellows <ro...@gmail.com>
AuthorDate: Thu Sep 12 15:17:14 2019 -0400
NIFI-6659 - Open create new parameter context dialog in edit mode.
This closes #3729
Signed-off-by: Scott Aslan <sc...@gmail.com>
---
.../webapp/js/nf/canvas/nf-process-group-configuration.js | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-process-group-configuration.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-process-group-configuration.js
index efe0ea3..c4dbfd8 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-process-group-configuration.js
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-process-group-configuration.js
@@ -401,6 +401,17 @@
}
}]).modal('show');
+ // make sure the edit mode is properly set
+ if ($('#parameter-context-dialog').hasClass('read-only')) {
+ $('#parameter-context-dialog').removeClass('read-only');
+ $('#parameter-context-dialog').addClass('edit-mode');
+ }
+
+ // there is no id yet, make sure the id field isn't shown
+ if (!$('#parameter-context-id-setting').hasClass('hidden')) {
+ $('#parameter-context-id-setting').addClass('hidden');
+ }
+
// set the initial focus
$('#parameter-context-name').focus();
}