mirror of https://github.com/apache/nifi.git
NIFI-2427: - Only showing read/write data policies for applicable components. Disabling for labels, controller services, reporting tasks, and templates.
This closes #748 Signed-off-by: jpercivall <joepercivall@yahoo.com>
This commit is contained in:
parent
a1bb94c08a
commit
ecca76099a
|
@ -974,6 +974,12 @@ nf.PolicyManagement = (function () {
|
|||
.combo('setOptionEnabled', {
|
||||
value: 'write-send-data'
|
||||
}, false)
|
||||
.combo('setOptionEnabled', {
|
||||
value: 'read-data'
|
||||
}, false)
|
||||
.combo('setOptionEnabled', {
|
||||
value: 'write-data'
|
||||
}, false)
|
||||
.combo('setSelectedOption', {
|
||||
value: 'read-component'
|
||||
});
|
||||
|
@ -1012,6 +1018,12 @@ nf.PolicyManagement = (function () {
|
|||
.combo('setOptionEnabled', {
|
||||
value: 'write-send-data'
|
||||
}, false)
|
||||
.combo('setOptionEnabled', {
|
||||
value: 'read-data'
|
||||
}, false)
|
||||
.combo('setOptionEnabled', {
|
||||
value: 'write-data'
|
||||
}, false)
|
||||
.combo('setSelectedOption', {
|
||||
value: 'read-component'
|
||||
});
|
||||
|
@ -1050,6 +1062,12 @@ nf.PolicyManagement = (function () {
|
|||
.combo('setOptionEnabled', {
|
||||
value: 'write-send-data'
|
||||
}, false)
|
||||
.combo('setOptionEnabled', {
|
||||
value: 'read-data'
|
||||
}, false)
|
||||
.combo('setOptionEnabled', {
|
||||
value: 'write-data'
|
||||
}, false)
|
||||
.combo('setSelectedOption', {
|
||||
value: 'read-component'
|
||||
});
|
||||
|
@ -1083,7 +1101,13 @@ nf.PolicyManagement = (function () {
|
|||
}, false)
|
||||
.combo('setOptionEnabled', {
|
||||
value: 'write-send-data'
|
||||
}, false);
|
||||
}, false)
|
||||
.combo('setOptionEnabled', {
|
||||
value: 'read-data'
|
||||
}, true)
|
||||
.combo('setOptionEnabled', {
|
||||
value: 'write-data'
|
||||
}, true);
|
||||
} else {
|
||||
var d = selection.datum();
|
||||
$('#selected-policy-component-id').text(d.id);
|
||||
|
@ -1111,7 +1135,13 @@ nf.PolicyManagement = (function () {
|
|||
}, nf.CanvasUtils.isInputPort(selection) && nf.Canvas.getParentGroupId() === null)
|
||||
.combo('setOptionEnabled', {
|
||||
value: 'write-send-data'
|
||||
}, nf.CanvasUtils.isOutputPort(selection) && nf.Canvas.getParentGroupId() === null);
|
||||
}, nf.CanvasUtils.isOutputPort(selection) && nf.Canvas.getParentGroupId() === null)
|
||||
.combo('setOptionEnabled', {
|
||||
value: 'read-data'
|
||||
}, !nf.CanvasUtils.isLabel(selection))
|
||||
.combo('setOptionEnabled', {
|
||||
value: 'write-data'
|
||||
}, !nf.CanvasUtils.isLabel(selection));
|
||||
}
|
||||
|
||||
// populate the initial resource
|
||||
|
|
Loading…
Reference in New Issue