mirror of https://github.com/apache/nifi.git
[NIFI-3813] fix broken PG config dialog when user has read only perms on the PG. This closes #1757
This commit is contained in:
parent
d9410d6404
commit
85405dae15
|
@ -177,8 +177,9 @@
|
||||||
// store the process group
|
// store the process group
|
||||||
$('#process-group-configuration').data('process-group', response);
|
$('#process-group-configuration').data('process-group', response);
|
||||||
|
|
||||||
|
var processGroup = response.component;
|
||||||
|
|
||||||
if (response.permissions.canWrite) {
|
if (response.permissions.canWrite) {
|
||||||
var processGroup = response.component;
|
|
||||||
|
|
||||||
// populate the process group settings
|
// populate the process group settings
|
||||||
$('#process-group-name').removeClass('unset').val(processGroup.name);
|
$('#process-group-name').removeClass('unset').val(processGroup.name);
|
||||||
|
@ -196,8 +197,8 @@
|
||||||
} else {
|
} else {
|
||||||
if (response.permissions.canRead) {
|
if (response.permissions.canRead) {
|
||||||
// populate the process group settings
|
// populate the process group settings
|
||||||
$('#read-only-process-group-name').removeClass('unset').text(response.component.name);
|
$('#read-only-process-group-name').removeClass('unset').text(processGroup.name);
|
||||||
$('#read-only-process-group-comments').removeClass('unset').text(response.component.comments);
|
$('#read-only-process-group-comments').removeClass('unset').text(processGroup.comments);
|
||||||
|
|
||||||
// populate the header
|
// populate the header
|
||||||
$('#process-group-configuration-header-text').text(processGroup.name + ' Configuration');
|
$('#process-group-configuration-header-text').text(processGroup.name + ' Configuration');
|
||||||
|
|
Loading…
Reference in New Issue