changed the header and license
[aai/sparky-fe.git] / src / app / vnfSearch / VnfSearchReducer.js
index 5c96a2b..3cde36a 100644 (file)
@@ -2,8 +2,8 @@
  * ============LICENSE_START=======================================================
  * org.onap.aai
  * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
+ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright © 2017-2018 Amdocs
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
  */
-import {vnfActionTypes} from 'app/vnfSearch/VnfSearchConstants.js';
 import {
+  vnfActionTypes,
   CHART_ORCH_STATUS,
   CHART_PROV_STATUS,
   CHART_NF_ROLE,
@@ -30,13 +27,13 @@ import {
   TOTAL_VNF_COUNT
 } from 'app/vnfSearch/VnfSearchConstants.js';
 import {ERROR_RETRIEVING_DATA} from 'app/networking/NetworkConstants.js';
-import {MESSAGE_LEVEL_DANGER} from 'utils/GlobalConstants.js';
+import {
+  filterBarActionTypes,
+  MESSAGE_LEVEL_DANGER
+} from 'utils/GlobalConstants.js';
 import {
   globalAutoCompleteSearchBarActionTypes
 } from 'app/globalAutoCompleteSearchBar/GlobalAutoCompleteSearchBarConstants.js';
-import {
-  filterBarActionTypes
-} from 'generic-components/filterBar/FilterBarConstants.js';
 
 export default (state = {}, action) => {
   let data = action.data;
@@ -106,6 +103,16 @@ export default (state = {}, action) => {
         vnfFilterValues: data.nonConvertedValues  // launching DI view via menu button requires this
                                                   // to be set so visualizations and table will populate themselves
       };
+    case vnfActionTypes.VNF_ACTIVATE_BUSY_FEEDBACK:
+      return {
+        ...state,
+        enableBusyFeedback: true
+      };
+    case vnfActionTypes.VNF_DISABLE_BUSY_FEEDBACK:
+      return {
+        ...state,
+        enableBusyFeedback: false
+      }; 
     case filterBarActionTypes.CLEAR_FILTERS:
       return {
         ...state,