summaryrefslogtreecommitdiffstats
path: root/src/app/MainScreenWrapperReducer.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/MainScreenWrapperReducer.js')
-rw-r--r--src/app/MainScreenWrapperReducer.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/app/MainScreenWrapperReducer.js b/src/app/MainScreenWrapperReducer.js
index 8c60330..6dd7dbf 100644
--- a/src/app/MainScreenWrapperReducer.js
+++ b/src/app/MainScreenWrapperReducer.js
@@ -20,6 +20,7 @@
*
* ECOMP is a trademark and service mark of AT&T Intellectual Property.
*/
+
import {aaiActionTypes} from './MainScreenWrapperConstants.js';
import {
globalAutoCompleteSearchBarActionTypes
@@ -61,11 +62,23 @@ export default (state = {}, action) => {
...state,
externalRequestFound: action.data
};
+
case aaiActionTypes.SET_SECONDARY_TITLE:
return {
...state,
secondaryTitle: action.data
};
+ case contextHandlerActionTypes.SUBSCRIPTION_PAYLOAD_FOUND:
+ return {
+ ...state,
+ subscriptionPayload: action.data,
+ subscriptionEnabled: true
+ };
+ case contextHandlerActionTypes.SUBSCRIPTION_PAYLOAD_EMPTY:
+ return {
+ ...state,
+ subscriptionEnabled: false
+ };
}
return state;
};