X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Fcomposer%2Fsrc%2Fsrc%2Fcomponents%2FEditorForwardingGraph%2FEditForwardingGraphPaths.js;h=ba1e0cc4fa50ea33cede46c869372735aced2490;hb=3f7d3075ddc01e1f26ecf4fa472189d67a8d9c50;hp=0f39d30a4d57dacc0be51fd5db09f4db793ec3ca;hpb=e29efc315df33d546237e270470916e26df391d6;p=osm%2FUI.git diff --git a/skyquake/plugins/composer/src/src/components/EditorForwardingGraph/EditForwardingGraphPaths.js b/skyquake/plugins/composer/src/src/components/EditorForwardingGraph/EditForwardingGraphPaths.js index 0f39d30a4..ba1e0cc4f 100644 --- a/skyquake/plugins/composer/src/src/components/EditorForwardingGraph/EditForwardingGraphPaths.js +++ b/skyquake/plugins/composer/src/src/components/EditorForwardingGraph/EditForwardingGraphPaths.js @@ -1,5 +1,5 @@ /* - * + * * Copyright 2016 RIFT.IO Inc * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -45,6 +45,11 @@ import mapRecordServicePath from './mapRecordServicePath' import onCutDelegateToRemove from './onCutDelegateToRemove' import onClickSelectAndShowInDetailsPanel from './onClickSelectAndShowInDetailsPanel' +import {SkyquakeRBAC, isRBACValid} from 'widgets/skyquake_rbac/skyquakeRBAC.jsx'; +import ROLES from 'utils/roleConstants.js'; +const PROJECT_ROLES = ROLES.PROJECT; +const PLATFORM = ROLES.PLATFORM; + import '../../styles/EditForwardingGraphPaths.scss' import imgNSD from '../../images/default-catalog-icon.svg' @@ -119,7 +124,11 @@ function mapFG(fg, i) {
-
}> {fg.title} @@ -133,7 +142,11 @@ function mapFG(fg, i) { {fg.classifier.map(mapClassifier.bind(null, context))}
-
@@ -167,7 +180,11 @@ function mapNSD(nsd, i) { {forwardingGraphs}
-
@@ -193,14 +210,16 @@ const EditForwardingGraphPaths = React.createClass({ }, componentWillUnmount: function () { }, + contextTypes: { + userProfile: React.PropTypes.object + }, render() { - const containers = this.props.containers; const context = { component: this, - containers: containers + containers: containers, + isRBACValid: isRBACValid(this.context.userProfile, [PROJECT_ROLES.CAT_ADMIN]) }; - const networkService = containers.filter(d => d.type === 'nsd'); if (networkService.length === 0) { return

No NSD open in the canvas. Try opening an NSD.

;