NIFI-6637 - Display Parameter Context Id on Update Parameter Context dialog.

This closes #3701
This commit is contained in:
Rob Fellows 2019-09-06 10:26:35 -04:00 committed by Matt Gilman
parent b9c0f51356
commit 7af710f168
No known key found for this signature in database
GPG Key ID: DF61EC19432AEE37
2 changed files with 17 additions and 0 deletions

View File

@ -22,6 +22,12 @@
<div id="parameter-context-tabs-content">
<div id="parameter-context-standard-settings-tab-content" class="configuration-tab">
<div class="settings-left">
<div id="parameter-context-id-setting" class="setting hidden">
<div class="setting-name">Id</div>
<div class="setting-field">
<div id="parameter-context-id-field"></div>
</div>
</div>
<div class="setting">
<div class="setting-name">Name</div>
<div id="parameter-context-name-container" class="setting-field">

View File

@ -2170,6 +2170,11 @@
$('#new-parameter-context').on('click', function () {
resetUsage();
// new parameter contexts do not have an ID to show
if (!$('#parameter-context-id-setting').hasClass('hidden')) {
$('#parameter-context-id-setting').addClass('hidden');
}
$('#parameter-context-dialog').modal('setHeaderText', 'Add Parameter Context').modal('setButtonModel', [{
buttonText: 'Apply',
color: {
@ -2316,6 +2321,12 @@
$('#parameter-context-name').val(parameterContextEntity.component.name);
$('#parameter-context-description-field').val(parameterContextEntity.component.description);
// show the parameter context id
if ($('#parameter-context-id-setting').hasClass('hidden')) {
$('#parameter-context-id-setting').removeClass('hidden');
}
$('#parameter-context-id-field').text(parameterContextEntity.id);
loadParameters(parameterContextEntity);
// show the context