summaryrefslogtreecommitdiffstats
path: root/src/app/vnfSearch/VnfSearchActions.js
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/VnfSearchActions.js
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/VnfSearchActions.js')
-rw-r--r--src/app/vnfSearch/VnfSearchActions.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/app/vnfSearch/VnfSearchActions.js b/src/app/vnfSearch/VnfSearchActions.js
index 0167962..156f541 100644
--- a/src/app/vnfSearch/VnfSearchActions.js
+++ b/src/app/vnfSearch/VnfSearchActions.js
@@ -205,8 +205,21 @@ function getVnfVisualizationsResultsEvent(results) {
};
}
+function setBusyFeedback(){
+ return {
+ type: vnfActionTypes.VNF_ACTIVATE_BUSY_FEEDBACK
+ };
+}
+
+function disableBusyFeedback(){
+ return {
+ type: vnfActionTypes.VNF_DISABLE_BUSY_FEEDBACK
+ };
+}
+
export function processVnfVisualizationsOnFilterChange(filterValueMap) {
return dispatch => {
+ dispatch(setBusyFeedback());
return fetch(VNF_FILTER_AGGREGATION_URL, {
method: POST,
headers: POST_HEADER,
@@ -222,8 +235,13 @@ export function processVnfVisualizationsOnFilterChange(filterValueMap) {
}
dispatch(getVnfVisualizationsResultsEvent(responseJson));
}
+ ).then(
+ () => {
+ dispatch(disableBusyFeedback());
+ }
).catch(
() => {
+ dispatch(disableBusyFeedback());
dispatch(getInvalidQueryEvent());
}
);