mirror of https://github.com/apache/nifi.git
NIFI-1551: - Ensuring the datum is included when getting the entity key in nf-actions.
This closes #364. Signed-off-by: Bryan Bende <bbende@apache.org>
This commit is contained in:
parent
8c09a5c8d2
commit
f54e5d4b1b
|
@ -413,7 +413,7 @@ nf.Actions = (function () {
|
|||
|
||||
// build the entity
|
||||
var entity = {};
|
||||
entity[nf[d.type].getEntityKey()] = {
|
||||
entity[nf[d.type].getEntityKey(d)] = {
|
||||
'id': d.component.id,
|
||||
'state': 'STOPPED'
|
||||
};
|
||||
|
@ -460,7 +460,7 @@ nf.Actions = (function () {
|
|||
|
||||
// build the entity
|
||||
var entity = {};
|
||||
entity[nf[d.type].getEntityKey()] = {
|
||||
entity[nf[d.type].getEntityKey(d)] = {
|
||||
'id': d.component.id,
|
||||
'state': 'DISABLED'
|
||||
};
|
||||
|
@ -547,7 +547,7 @@ nf.Actions = (function () {
|
|||
|
||||
// build the entity
|
||||
var entity = {};
|
||||
entity[nf[d.type].getEntityKey()] = component;
|
||||
entity[nf[d.type].getEntityKey(d)] = component;
|
||||
|
||||
startRequests.push(updateResource(d.component.uri, entity).done(function (response) {
|
||||
if (nf.CanvasUtils.isProcessor(selected)) {
|
||||
|
@ -624,7 +624,7 @@ nf.Actions = (function () {
|
|||
|
||||
// build the entity
|
||||
var entity = {};
|
||||
entity[nf[d.type].getEntityKey()] = component;
|
||||
entity[nf[d.type].getEntityKey(d)] = component;
|
||||
|
||||
stopRequests.push(updateResource(d.component.uri, entity).done(function (response) {
|
||||
if (nf.CanvasUtils.isProcessor(selected)) {
|
||||
|
|
Loading…
Reference in New Issue