mirror of https://github.com/apache/nifi.git
NIFI-13428 Added filter by comments to UpdateAttribute Advanced Rules
This closes #8999 Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
parent
20c815dc12
commit
02ec9b73eb
|
@ -192,6 +192,9 @@ var ua = {
|
||||||
options: [{
|
options: [{
|
||||||
text: 'by name',
|
text: 'by name',
|
||||||
value: 'name'
|
value: 'name'
|
||||||
|
}, {
|
||||||
|
text: 'by comments',
|
||||||
|
value: 'comments'
|
||||||
}, {
|
}, {
|
||||||
text: 'by condition',
|
text: 'by condition',
|
||||||
value: 'condition'
|
value: 'condition'
|
||||||
|
@ -1473,6 +1476,8 @@ var ua = {
|
||||||
// determine the filter type (name, condition, action)
|
// determine the filter type (name, condition, action)
|
||||||
if (filterType.value === 'name') {
|
if (filterType.value === 'name') {
|
||||||
return [rule.name];
|
return [rule.name];
|
||||||
|
} else if (filterType.value === 'comments') {
|
||||||
|
return [rule.comments];
|
||||||
} else if (filterType.value === 'condition') {
|
} else if (filterType.value === 'condition') {
|
||||||
var conditions = [];
|
var conditions = [];
|
||||||
$.each(rule.conditions, function (_, condition) {
|
$.each(rule.conditions, function (_, condition) {
|
||||||
|
|
Loading…
Reference in New Issue