X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Faccounts%2Fsrc%2Faccount_sidebar%2FaccountSidebar.jsx;h=3a10ce98818c03245639912dca7a55c891593715;hb=3675ba75a1448e3aa468abb95f177666f8edfa48;hp=62761948dc9bb9675c41335b39db350f0c8cbabe;hpb=d1f2a7f4631cca78b7dfc744aae1beb3123c5698;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 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;