mirror of https://github.com/apache/nifi.git
Merge branch 'develop' of http://git-wip-us.apache.org/repos/asf/incubator-nifi into develop
This commit is contained in:
commit
39735c30bc
|
@ -53,7 +53,7 @@ public class StandardControllerServiceNode extends AbstractConfiguredComponent i
|
||||||
|
|
||||||
public StandardControllerServiceNode(final ControllerService proxiedControllerService, final ControllerService implementation, final String id,
|
public StandardControllerServiceNode(final ControllerService proxiedControllerService, final ControllerService implementation, final String id,
|
||||||
final ValidationContextFactory validationContextFactory, final ControllerServiceProvider serviceProvider) {
|
final ValidationContextFactory validationContextFactory, final ControllerServiceProvider serviceProvider) {
|
||||||
super(proxiedControllerService, id, validationContextFactory, serviceProvider);
|
super(implementation, id, validationContextFactory, serviceProvider);
|
||||||
this.proxedControllerService = proxiedControllerService;
|
this.proxedControllerService = proxiedControllerService;
|
||||||
this.implementation = implementation;
|
this.implementation = implementation;
|
||||||
this.serviceProvider = serviceProvider;
|
this.serviceProvider = serviceProvider;
|
||||||
|
|
|
@ -1159,8 +1159,9 @@
|
||||||
// add a row for the new property
|
// add a row for the new property
|
||||||
var propertyGrid = table.data('gridInstance');
|
var propertyGrid = table.data('gridInstance');
|
||||||
var propertyData = propertyGrid.getData();
|
var propertyData = propertyGrid.getData();
|
||||||
|
var id = propertyData.getLength();
|
||||||
propertyData.addItem({
|
propertyData.addItem({
|
||||||
id: propertyData.getLength(),
|
id: id,
|
||||||
hidden: false,
|
hidden: false,
|
||||||
property: propertyName,
|
property: propertyName,
|
||||||
displayName: propertyName,
|
displayName: propertyName,
|
||||||
|
@ -1168,6 +1169,11 @@
|
||||||
value: null,
|
value: null,
|
||||||
type: 'userDefined'
|
type: 'userDefined'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// select the new properties row
|
||||||
|
var row = propertyData.getRowById(id);
|
||||||
|
propertyGrid.setSelectedRows([row]);
|
||||||
|
propertyGrid.scrollRowIntoView(row);
|
||||||
} else {
|
} else {
|
||||||
nf.Dialog.showOkDialog({
|
nf.Dialog.showOkDialog({
|
||||||
dialogContent: 'Property name must be specified.',
|
dialogContent: 'Property name must be specified.',
|
||||||
|
@ -1182,6 +1188,14 @@
|
||||||
var cancel = function () {
|
var cancel = function () {
|
||||||
newPropertyDialog.hide();
|
newPropertyDialog.hide();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// enable enter to add
|
||||||
|
newPropertyNameField.on('keydown', function (e) {
|
||||||
|
var code = e.keyCode ? e.keyCode : e.which;
|
||||||
|
if (code === $.ui.keyCode.ENTER) {
|
||||||
|
add();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// make the new property dialog draggable
|
// make the new property dialog draggable
|
||||||
newPropertyDialog.draggable({
|
newPropertyDialog.draggable({
|
||||||
|
|
Loading…
Reference in New Issue