diff options
author | Sébastien Determe <sebastien.determe@intl.att.com> | 2019-07-29 11:17:58 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-29 11:17:58 +0000 |
commit | 4453cc6abdd95f5ee30c205731237dd7f2d6ae52 (patch) | |
tree | f991d5d57c6a2201b794fb76a0845fbb322363c9 /ui-react/src/LoopUI.js | |
parent | 2eb723772eb99e67d621165d38f289a260488b05 (diff) | |
parent | e52d5727650590b9adaa43f5830c40913cebf348 (diff) |
Merge "Rework user info window"
Diffstat (limited to 'ui-react/src/LoopUI.js')
-rw-r--r-- | ui-react/src/LoopUI.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ui-react/src/LoopUI.js b/ui-react/src/LoopUI.js index 40ae1379c..7d8fcb5cf 100644 --- a/ui-react/src/LoopUI.js +++ b/ui-react/src/LoopUI.js @@ -38,6 +38,8 @@ import { Route, Redirect } from 'react-router-dom' import OpenLoopModal from './components/dialogs/OpenLoop/OpenLoopModal'; import OperationalPolicyModal from './components/dialogs/OperationalPolicy/OperationalPolicyModal'; import ConfigurationPolicyModal from './components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal'; +import LoopProperties from './components/dialogs/LoopProperties'; +import UserInfo from './components/dialogs/UserInfo'; const ProjectNameStyled = styled.a` vertical-align: middle; @@ -104,7 +106,7 @@ export default class LoopUI extends React.Component { renderMenuNavBar() { return ( - <MenuBar /> + <MenuBar loopCache={this.state.loopCache}/> ); } @@ -153,6 +155,10 @@ export default class LoopUI extends React.Component { ); } + getLoopCache() { + return this.state.loopCache; + + } renderLoopViewer() { return ( <LoopViewDivStyled> @@ -177,6 +183,8 @@ export default class LoopUI extends React.Component { render={(routeProps) => (<OperationalPolicyModal {...routeProps} loopCache={this.state.loopCache} />)} /> <Route path="/configurationPolicyModal/:componentName" render={(routeProps) => (<ConfigurationPolicyModal {...routeProps} loopCache={this.state.loopCache} />)} /> <Route path="/openLoop" render={(routeProps) => (<OpenLoopModal {...routeProps} updateLoopCacheFunction={this.updateLoopCache} />)} /> + <Route path="/loopProperties" render={(routeProps) => (<LoopProperties {...routeProps} loopCache={this.getLoopCache()} />)} /> + <Route path="/userInfo" render={(routeProps) => (<UserInfo {...routeProps} />)} /> <Route path="/closeLoop" render={(routeProps) => (<Redirect to='/'/>)} /> </div> ); |