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=1b23802b07a343dc700e558c5c1dbcf740d108ce;hp=62761948dc9bb9675c41335b39db350f0c8cbabe;hb=refs%2Fchanges%2F56%2F5556%2F1;hpb=dfe972ff7c9f7b6b1d730e66b0b2aa8df2ce329b diff --git a/skyquake/plugins/accounts/src/account_sidebar/accountSidebar.jsx b/skyquake/plugins/accounts/src/account_sidebar/accountSidebar.jsx index 62761948d..1b23802b0 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 = [ @@ -54,11 +55,38 @@ class AccountSidebar extends React.Component{ data: this.props.sdn }, { - type: 'config', + type: 'config-agent', 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,9 +118,10 @@ class AccountSidebar extends React.Component{ return (
- +
-

{account.name}

+ +

{account.name}

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

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

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