NIFI-259:
- Only providing the View State menu item for DFMs.
Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/5b62ff0f
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/5b62ff0f
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/5b62ff0f
Branch: refs/heads/master
Commit: 5b62ff0fc3eda382f8577edff60f1b03d631c8e9
Parents: 4236125
Author: Matt Gilman <matt.c.gilman@gmail.com>
Authored: Thu Jan 14 15:36:57 2016 -0500
Committer: Matt Gilman <matt.c.gilman@gmail.com>
Committed: Thu Jan 14 15:36:57 2016 -0500
----------------------------------------------------------------------
.../nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/nifi/blob/5b62ff0f/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js
index 990ca07..fb38081 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js
@@ -242,6 +242,11 @@ nf.ContextMenu = (function () {
return false;
}
+ // ensure the user is DFM
+ if (nf.Common.isDFM() === false) {
+ return false;
+ }
+
if (nf.CanvasUtils.isProcessor(selection)) {
var processorData = selection.datum();
return processorData.component.persistsState === true;
|