summaryrefslogtreecommitdiffstats
path: root/src/app/vnfSearch/VnfSearchTotalCountVisualization.jsx
diff options
context:
space:
mode:
authorarul.nambi <arul.nambi@amdocs.com>2018-01-30 12:34:34 -0500
committerarul.nambi <arul.nambi@amdocs.com>2018-01-30 14:00:30 -0500
commitf42261a2cd0582e0209018c23816681e146ea97d (patch)
tree078eb4fee79f5cb0740615042afc31a48b429d69 /src/app/vnfSearch/VnfSearchTotalCountVisualization.jsx
parent89cfd8bfafeb71ea89030b062a467631988f15f0 (diff)
Implementing user feed back
Change-Id: I66196a4a5a319bb9c78c503244c0e78824ac855a Signed-off-by: arul.nambi <arul.nambi@amdocs.com> Issue-ID: AAI-696
Diffstat (limited to 'src/app/vnfSearch/VnfSearchTotalCountVisualization.jsx')
-rw-r--r--src/app/vnfSearch/VnfSearchTotalCountVisualization.jsx28
1 files changed, 21 insertions, 7 deletions
diff --git a/src/app/vnfSearch/VnfSearchTotalCountVisualization.jsx b/src/app/vnfSearch/VnfSearchTotalCountVisualization.jsx
index a2abd7c..553de42 100644
--- a/src/app/vnfSearch/VnfSearchTotalCountVisualization.jsx
+++ b/src/app/vnfSearch/VnfSearchTotalCountVisualization.jsx
@@ -26,14 +26,18 @@ import {connect} from 'react-redux';
import i18n from 'utils/i18n/i18n';
import {TOTAL_VNF_COUNT} from 'app/vnfSearch/VnfSearchConstants.js';
+import {COLOR_BLUE} from 'utils/GlobalConstants.js';
+import { ClipLoader } from 'react-spinners';
let mapStateToProps = ({vnfSearch}) => {
let {
- count = TOTAL_VNF_COUNT.emptyValue
+ count = TOTAL_VNF_COUNT.emptyValue,
+ enableBusyFeedback = false
} = vnfSearch;
return {
- count
+ count,
+ enableBusyFeedback
};
};
@@ -42,14 +46,19 @@ class VnfSearchTotalCountVisualization extends Component {
count: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.number
- ])
+ ]),
+ enableBusyFeedback: React.PropTypes.bool
};
render() {
let {
- count
+ count,
+ enableBusyFeedback
} = this.props;
-
+ let componentVisibitliyClassName = 'showContainer';
+ if(enableBusyFeedback){
+ componentVisibitliyClassName = 'hideContainer';
+ }
let visualizationClass = 'visualizations';
if (count === null) {
visualizationClass = 'visualizations hidden';
@@ -61,8 +70,13 @@ class VnfSearchTotalCountVisualization extends Component {
<div className='visualization-side-by-side-30'>
<span>&nbsp;</span>
<h3>{i18n(TOTAL_VNF_COUNT.title)}</h3>
- <div className='total-box-entity-count'>
- <span>{count}</span>
+ <div className='spinner'>
+ <ClipLoader color={COLOR_BLUE} loading={enableBusyFeedback} />
+ </div>
+ <div className={componentVisibitliyClassName}>
+ <div className='total-box-entity-count'>
+ <span>{count}</span>
+ </div>
</div>
</div>
</div>