From 2d4424c28ac35763ef44c42ae2f01664d42b268c Mon Sep 17 00:00:00 2001
From: Herbert Eiselt <herbert.eiselt@highstreet-technologies.com>
Date: Tue, 12 Mar 2019 18:00:21 +0100
Subject: Security provider for UX-Client-Login

Use ODL provided oauth2/token for UX clients

Change-Id: I9f9ae931fc5e74dc13076bd23551d163c0685606
Issue-ID: SDNC-648
Signed-off-by: Herbert Eiselt <herbert.eiselt@highstreet-technologies.com>
---
 sdnr/wt/odlux/apps/connectApp/src/views/connectView.tsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'sdnr/wt/odlux/apps/connectApp/src/views/connectView.tsx')

diff --git a/sdnr/wt/odlux/apps/connectApp/src/views/connectView.tsx b/sdnr/wt/odlux/apps/connectApp/src/views/connectView.tsx
index b73eb39d7..998618608 100644
--- a/sdnr/wt/odlux/apps/connectApp/src/views/connectView.tsx
+++ b/sdnr/wt/odlux/apps/connectApp/src/views/connectView.tsx
@@ -37,11 +37,12 @@ class ConnectApplicationComponent extends React.Component<ConnectApplicationComp
    */
   constructor(props: ConnectApplicationComponentProps) {
     super(props);
-    
+
     this.state = {
       activePanel: null
     };
   }
+
   private onTogglePanel = (panelId: PanelId) => {
     const nextActivePanel = panelId === this.state.activePanel ? null : panelId;
     this.setState({
@@ -69,7 +70,7 @@ class ConnectApplicationComponent extends React.Component<ConnectApplicationComp
 
   render(): JSX.Element {
     const { activePanel } = this.state;
-    
+
     return (
       <>
         <Panel activePanel={ activePanel } panelId={ 'RequiredNetworkElements' } onToggle={ this.onTogglePanel } title={ "Required Network Elements" }>
@@ -85,6 +86,7 @@ class ConnectApplicationComponent extends React.Component<ConnectApplicationComp
     );
   };
   public componentDidMount() {
+    this.onTogglePanel("RequiredNetworkElements");
     this.props.onLoadUnknownNetworkElements();
   }
 }
-- 
cgit 1.2.3-korg

