summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/sdc-app/onboarding/OnboardingConstants.js
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-ui/src/sdc-app/onboarding/OnboardingConstants.js')
-rw-r--r--openecomp-ui/src/sdc-app/onboarding/OnboardingConstants.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/openecomp-ui/src/sdc-app/onboarding/OnboardingConstants.js b/openecomp-ui/src/sdc-app/onboarding/OnboardingConstants.js
index 36054397d9..8e07765122 100644
--- a/openecomp-ui/src/sdc-app/onboarding/OnboardingConstants.js
+++ b/openecomp-ui/src/sdc-app/onboarding/OnboardingConstants.js
@@ -18,11 +18,12 @@ import keyMirror from 'nfvo-utils/KeyMirror.js';
export const DATE_FORMAT = 'MM/DD/YYYY';
export const actionTypes = keyMirror({
- SET_CURRENT_SCREEN: null,
+ SET_CURRENT_SCREEN: 'SET_CURRENT_SCREEN',
SET_CURRENT_LICENSE_MODEL: null,
SET_CURRENT_SCREEN_VERSION: null,
- UPDATE_CURRENT_SCREEN_PROPS: null,
- UPDATE_ITEM_STATUS: null
+ UPDATE_CURRENT_SCREEN_PROPS: 'UPDATE_CURRENT_SCREEN_PROPS',
+ UPDATE_ITEM_STATUS: 'UPDATE_ITEM_STATUS',
+ UPDATE_ITEM_ARCHIVE_STATUS: 'UPDATE_ITEM_ARCHIVE_STATUS'
});
export const screenTypes = keyMirror({
@@ -117,3 +118,10 @@ export const enums = keyMirror({
breadcrumbsEnum.SOFTWARE_PRODUCT_COMPONENT_IMAGES
}
});
+
+export const onboardingActions = {
+ updateItemArchivedStatus: isArchived => ({
+ type: actionTypes.UPDATE_ITEM_ARCHIVE_STATUS,
+ isArchived
+ })
+};