Repository: nifi Updated Branches: refs/heads/master 8c09a5c8d -> f54e5d4b1
NIFI-1551: - Ensuring the datum is included when getting the entity key in nf-actions. This closes #364. Signed-off-by: Bryan Bende <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/f54e5d4b Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/f54e5d4b Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/f54e5d4b Branch: refs/heads/master Commit: f54e5d4b1b2f5a784eeaf2f194b878adff1b8aa0 Parents: 8c09a5c Author: Matt Gilman <[email protected]> Authored: Tue Apr 19 09:37:31 2016 -0400 Committer: Bryan Bende <[email protected]> Committed: Tue Apr 19 10:23:10 2016 -0400 ---------------------------------------------------------------------- .../nifi-web-ui/src/main/webapp/js/nf/canvas/nf-actions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/nifi/blob/f54e5d4b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-actions.js ---------------------------------------------------------------------- diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-actions.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-actions.js index 9a1e934..b5f664f 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-actions.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-actions.js @@ -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)) {
