X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Faccounts%2Fsrc%2Faccount_sidebar%2FaccountSidebar.jsx;h=3a10ce98818c03245639912dca7a55c891593715;hp=62761948dc9bb9675c41335b39db350f0c8cbabe;hb=07633662ca4b314f27373775a7eb0ccc1d19e8a0;hpb=3130c3b976dc11f641bce038fcfa1c101d156f12 diff --git a/skyquake/plugins/accounts/src/account_sidebar/accountSidebar.jsx b/skyquake/plugins/accounts/src/account_sidebar/accountSidebar.jsx index 62761948d..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 = [ @@ -92,6 +93,7 @@ class AccountSidebar extends React.Component{
+

{account.name}

@@ -127,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;