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=ee86a7bf0a47e5ff0f2732e3199d5a70578d09d4;hb=07633662ca4b314f27373775a7eb0ccc1d19e8a0;hpb=e29efc315df33d546237e270470916e26df391d6 diff --git a/skyquake/plugins/accounts/src/account_sidebar/accountSidebar.jsx b/skyquake/plugins/accounts/src/account_sidebar/accountSidebar.jsx index ee86a7bf0..3a10ce988 100644 --- a/skyquake/plugins/accounts/src/account_sidebar/accountSidebar.jsx +++ b/skyquake/plugins/accounts/src/account_sidebar/accountSidebar.jsx @@ -1,5 +1,5 @@ /* - * + * * Copyright 2016 RIFT.IO Inc * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -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}

@@ -123,42 +125,57 @@ class AccountSidebar extends React.Component{ html = (
-

VIM Accounts

- {cloudAccounts} - - - Add VIM Account - - - + {props.showVIM ? ( +
+

VIM Accounts

+ {cloudAccounts} + { + !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;