mirror of https://github.com/apache/nifi.git
NIFI-42:
- Using displayName where appropriate. - Ensuring descriptor exists before attempting to use a default value.
This commit is contained in:
parent
63e80d3fdc
commit
3861446958
|
@ -475,12 +475,12 @@ nf.ProcessorPropertyTable = (function () {
|
|||
|
||||
// use the display name if possible
|
||||
displayName = descriptor.displayName;
|
||||
}
|
||||
|
||||
// determine the value
|
||||
if (nf.Common.isUndefined(value) || nf.Common.isNull(value)) {
|
||||
value = descriptor.defaultValue;
|
||||
}
|
||||
}
|
||||
|
||||
// add the row
|
||||
propertyData.addItem({
|
||||
|
|
|
@ -462,6 +462,7 @@ nf.ProcessorDetails = (function () {
|
|||
|
||||
// determine the property type
|
||||
var type = 'userDefined';
|
||||
var displayName = name;
|
||||
if (nf.Common.isDefinedAndNotNull(descriptor)) {
|
||||
if (descriptor.required === true) {
|
||||
type = 'required';
|
||||
|
@ -470,17 +471,20 @@ nf.ProcessorDetails = (function () {
|
|||
} else {
|
||||
type = 'optional';
|
||||
}
|
||||
}
|
||||
|
||||
// use the display name if possible
|
||||
displayName = descriptor.displayName;
|
||||
|
||||
// determine the value
|
||||
if (nf.Common.isUndefined(value) || nf.Common.isNull(value)) {
|
||||
value = descriptor.defaultValue;
|
||||
}
|
||||
}
|
||||
|
||||
// add the row
|
||||
propertyData.addItem({
|
||||
id: i++,
|
||||
property: name,
|
||||
property: displayName,
|
||||
value: value,
|
||||
type: type
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue