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=fbcafffe166fe5eeb8352d1308aa14c0d56cd2c3;hp=723d89361129e4fbb24d4a8dc5c1c6a0dd518830;hb=03156e335275de1dafbc2a816e98006afdf249bf;hpb=f2dc2462571800e62cba969964de621dca09299c diff --git a/skyquake/plugins/accounts/src/account_sidebar/accountSidebar.jsx b/skyquake/plugins/accounts/src/account_sidebar/accountSidebar.jsx index 723d89361..fbcafffe1 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 = [ @@ -56,9 +57,36 @@ class AccountSidebar extends React.Component{ { type: 'config', data: this.props['config-agent'] + }, + { + type: 'resource-orchestrator', + data: this.props['resource-orchestrator'] } ]; let refreshStatus = (
Check All Connectivity Status
) + let resourceOrchestrators = (this.props['resource-orchestrator'].length > 0) ? this.props['resource-orchestrator'].map(function(orchestrator, index) { + let status = null; + if (orchestrator) { + if (orchestrator['connection-status']) { + status = orchestrator['connection-status'].status; + } + return ( + +
+ +
+ +

+ {orchestrator.name} + +

+
+ +
+
+ ); + } + }) : null; let cloudAccounts = (this.props.cloud.length > 0) ? this.props.cloud.map(function(account, index) { let status = null; if (account) { @@ -68,11 +96,11 @@ class AccountSidebar extends React.Component{ return (
- +

- {account.name} + {account.name}

@@ -90,10 +118,10 @@ class AccountSidebar extends React.Component{ return (
- +
-

{account.name}

+

{account.name}

@@ -108,11 +136,11 @@ class AccountSidebar extends React.Component{ return (
- +

- {account.name} + {account.name}

@@ -123,47 +151,82 @@ class AccountSidebar extends React.Component{ }) : null; html = (
- + { + self.props.readonly ? null : +
); return html; @@ -173,7 +236,8 @@ class AccountSidebar extends React.Component{ AccountSidebar.defaultProps = { cloud: [], sdn: [], - 'config-agent': [] + 'config-agent': [], + ro: [] }