summaryrefslogtreecommitdiffstats
path: root/src/app/tierSupport/TierSupportActions.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/tierSupport/TierSupportActions.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/tierSupport/TierSupportActions.js')
-rw-r--r--src/app/tierSupport/TierSupportActions.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/app/tierSupport/TierSupportActions.js b/src/app/tierSupport/TierSupportActions.js
index ead321e..fc4bcad 100644
--- a/src/app/tierSupport/TierSupportActions.js
+++ b/src/app/tierSupport/TierSupportActions.js
@@ -120,6 +120,18 @@ export function clearVIData() {
};
}
+function setBusyFeedback(){
+ return {
+ type: tierSupportActionTypes.TIER_SUPPORT_ACTIVATE_BUSY_FEEDBACK
+ };
+}
+
+function disableBusyFeedback(){
+ return {
+ type: tierSupportActionTypes.TIER_SUPPORT_DISABLE_BUSY_FEEDBACK
+ };
+}
+
export function fetchSelectedNodeElement(fetchRequestCallback) {
return dispatch => {
return fetchRequestCallback().then(
@@ -140,8 +152,13 @@ export function fetchSelectedNodeElement(fetchRequestCallback) {
dispatch(noNodeDetailsFoundEvent(NO_RESULTS_FOUND));
}
}
+ ).then(
+ () => {
+ dispatch(disableBusyFeedback());
+ }
).catch(
(errorCode) => {
+ dispatch(disableBusyFeedback());
if (errorCode.message >= STATUS_CODE_5XX_SERVER_ERROR) {
dispatch(getInvalidSelectedNodeSearchEvent(ERROR_RETRIEVING_DATA));
} else {
@@ -169,6 +186,7 @@ export function querySelectedNodeElement(
}
return dispatch => {
+ dispatch(setBusyFeedback());
dispatch(fetchSelectedNodeElement(selectedNodeFetchRequest));
};
}