X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=skyquake%2Fplugins%2Faccounts%2Fsrc%2Faccount_sidebar%2FaccountSidebar.jsx;h=3a10ce98818c03245639912dca7a55c891593715;hb=80097691f3ed0adb4406906ef619c1042c2219ea;hp=723d89361129e4fbb24d4a8dc5c1c6a0dd518830;hpb=cac844abd83bc578a28f2ed5ccd625b90071514c;p=osm%2FUI.git diff --git a/skyquake/plugins/accounts/src/account_sidebar/accountSidebar.jsx b/skyquake/plugins/accounts/src/account_sidebar/accountSidebar.jsx index 723d89361..3a10ce988 100644 --- a/skyquake/plugins/accounts/src/account_sidebar/accountSidebar.jsx +++ b/skyquake/plugins/accounts/src/account_sidebar/accountSidebar.jsx @@ -42,6 +42,7 @@ class AccountSidebar extends React.Component{ } render() { let html; + let self = this; let {store, ...props} = this.props; //[this.props.cloud,this.props.sdn,this.props['config-agent']] let AccountData = [ @@ -128,42 +129,53 @@ class AccountSidebar extends React.Component{

VIM Accounts

{cloudAccounts} - - - Add VIM Account - - - + { + !self.props.readonly ? + + + Add VIM Account + + + + :
+ }
) : null}

SDN Accounts

{sdnAccounts} - - - Add SDN Account - - - + { + !self.props.readonly ? + + + Add SDN Account + + + + + :
+ }

Config Agent Accounts

{configAgentAccounts} - - - Add Config Agent Account - - - + { + !self.props.readonly ? + + + Add Config Agent Account + + + + :
+ } ); return html;