From 2f001464794aa6120e1327f4bc444ef27d047696 Mon Sep 17 00:00:00 2001 From: Yongfeng LI Date: Mon, 15 Jan 2018 18:56:05 +0800 Subject: [PATCH] config settings for remote visit --- .../SecondaryNavigation/SecondaryNavigation.jsx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/features/app/components/SecondaryNavigation/SecondaryNavigation.jsx b/src/features/app/components/SecondaryNavigation/SecondaryNavigation.jsx index dc92e8b..6f87c0c 100644 --- a/src/features/app/components/SecondaryNavigation/SecondaryNavigation.jsx +++ b/src/features/app/components/SecondaryNavigation/SecondaryNavigation.jsx @@ -29,12 +29,16 @@ class SecondaryNavigation extends React.Component { {/*Core status*/} {/**/} {/**/} -
  • - - {navIcon('network', styles)} - Access Control - -
  • + + { + this.props.canViewTokens && +
  • + + {navIcon('network', styles)} + Access Control + +
  • + } {this.props.canLogOut &&
  • @@ -50,7 +54,8 @@ class SecondaryNavigation extends React.Component { export default connect( (state) => ({ - canLogOut: state.core.requireClientToken, + canLogOut: !!state.core.clientToken, + canViewTokens: !state.core.clientToken }), (dispatch) => ({ logOut: () => dispatch(actions.core.clearSession) -- 2.11.0