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:
Matt Gilman 2016-04-19 09:37:31 -04:00 committed by Bryan Bende
parent 8c09a5c8d2
commit f54e5d4b1b
1 changed files with 4 additions and 4 deletions

View File

@ -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)) {