From c89060158fab7394c3bddc5eacb0411dbb13785c Mon Sep 17 00:00:00 2001
From: Steve Thomas <steve.thomas@amdocs.com>
Date: Mon, 5 Feb 2018 11:54:23 -0500
Subject: Correcting spinner

Change-Id: I0531805d63a9d5b8ac6a161281845a6b8cc1f4af
Issue-ID: AAI-732
Signed-off-by: Steve Thomas <steve.thomas@amdocs.com>
---
 .../vnfSearch/VnfSearchOrchestratedStatusVisualization.jsx | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

(limited to 'src/app/vnfSearch/VnfSearchOrchestratedStatusVisualization.jsx')

diff --git a/src/app/vnfSearch/VnfSearchOrchestratedStatusVisualization.jsx b/src/app/vnfSearch/VnfSearchOrchestratedStatusVisualization.jsx
index 7cc29d8..834e179 100644
--- a/src/app/vnfSearch/VnfSearchOrchestratedStatusVisualization.jsx
+++ b/src/app/vnfSearch/VnfSearchOrchestratedStatusVisualization.jsx
@@ -36,7 +36,7 @@ import i18n from 'utils/i18n/i18n';
 
 import {CHART_ORCH_STATUS} from 'app/vnfSearch/VnfSearchConstants.js';
 import {COLOR_BLUE} from 'utils/GlobalConstants.js';
-import { ClipLoader } from 'react-spinners';
+import Spinner from 'utils/SpinnerContainer.jsx';
 
 let mapStateToProps = ({vnfSearch}) => {
   let {
@@ -61,10 +61,7 @@ class VnfSearchOrchStatusVisualizations extends Component {
 						processedOrchStatusCountChartData,
             enableBusyFeedback
 				} = this.props;
-    let componentVisibitliyClassName = 'showContainer';
-    if(enableBusyFeedback){
-      componentVisibitliyClassName = 'hideContainer';
-    }
+
     let visualizationClass = 'visualizations';
     if (processedOrchStatusCountChartData.values ===
       null ||
@@ -80,10 +77,7 @@ class VnfSearchOrchStatusVisualizations extends Component {
         <div className='visualization-charts'>
           <div >
             <h3>{i18n(CHART_ORCH_STATUS.title)}</h3>
-            <div className='spinner'>
-              <ClipLoader color={COLOR_BLUE} loading={enableBusyFeedback} />
-            </div>
-            <div className={componentVisibitliyClassName}>
+            <Spinner loading={enableBusyFeedback}>
               <ResponsiveContainer width='100%' height={300}>
                 <BarChart data={processedOrchStatusCountChartData.values}>
                   <XAxis dataKey={xAxisAttrName}/>
@@ -94,7 +88,7 @@ class VnfSearchOrchStatusVisualizations extends Component {
                        dataKey={yAxisAttrName} fill={COLOR_BLUE}/>
                 </BarChart>
               </ResponsiveContainer>
-            </div>
+            </Spinner>
           </div>
         </div>
       </div>
-- 
cgit 1.2.3-korg

