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,9 +177,10 @@
|
|||
// store the process group
|
||||
$('#process-group-configuration').data('process-group', response);
|
||||
|
||||
if (response.permissions.canWrite) {
|
||||
var processGroup = response.component;
|
||||
|
||||
if (response.permissions.canWrite) {
|
||||
|
||||
// populate the process group settings
|
||||
$('#process-group-name').removeClass('unset').val(processGroup.name);
|
||||
$('#process-group-comments').removeClass('unset').val(processGroup.comments);
|
||||
|
@ -196,8 +197,8 @@
|
|||
} else {
|
||||
if (response.permissions.canRead) {
|
||||
// populate the process group settings
|
||||
$('#read-only-process-group-name').removeClass('unset').text(response.component.name);
|
||||
$('#read-only-process-group-comments').removeClass('unset').text(response.component.comments);
|
||||
$('#read-only-process-group-name').removeClass('unset').text(processGroup.name);
|
||||
$('#read-only-process-group-comments').removeClass('unset').text(processGroup.comments);
|
||||
|
||||
// populate the header
|
||||
$('#process-group-configuration-header-text').text(processGroup.name + ' Configuration');
|
||||
|
|
Loading…
Reference in New Issue