diff options
author | svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com> | 2018-11-05 12:11:30 +0200 |
---|---|---|
committer | Einav Keidar <einavw@amdocs.com> | 2018-12-03 09:27:16 +0000 |
commit | bacc715f10f5c648d61f0720120b14aadebf9a77 (patch) | |
tree | b3dfb96845fff76f36d723261d6ad92d23271318 /openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments | |
parent | c97bae74316ddae5121dc361a7631a8cdaa335b0 (diff) |
keyMirror with namespace
Issue-ID: SDC-1873
Change-Id: Ib8e810397578610cd7e0cba64e10ecc38d67f5eb
Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
Diffstat (limited to 'openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments')
3 files changed, 33 insertions, 24 deletions
diff --git a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/SoftwareProductAttachmentsConstants.js b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/SoftwareProductAttachmentsConstants.js index aff0a3dbdf..337b07d7ba 100644 --- a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/SoftwareProductAttachmentsConstants.js +++ b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/SoftwareProductAttachmentsConstants.js @@ -1,5 +1,5 @@ /*! - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * Copyright © 2016-2018 European Support Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,6 +20,9 @@ export const tabsMapping = { VALIDATION: 2 }; -export const actionTypes = keyMirror({ - SET_ACTIVE_TAB: null -}); +export const actionTypes = keyMirror( + { + SET_ACTIVE_TAB: null + }, + 'softwareProductAttachments' +); diff --git a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/setup/HeatSetupConstants.js b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/setup/HeatSetupConstants.js index ff53fad27f..c87e9560f8 100644 --- a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/setup/HeatSetupConstants.js +++ b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/setup/HeatSetupConstants.js @@ -1,5 +1,5 @@ /*! - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * Copyright © 2016-2018 European Support Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,22 +15,25 @@ */ import keyMirror from 'nfvo-utils/KeyMirror.js'; -export const actionTypes = keyMirror({ - ARTIFACT_LIST_CHANGE: null, - ADD_ALL_UNASSIGNED_TO_ARTIFACTS: null, - ADD_ALL_ARTIFACTS_TO_UNASSIGNED: null, +export const actionTypes = keyMirror( + { + ARTIFACT_LIST_CHANGE: null, + ADD_ALL_UNASSIGNED_TO_ARTIFACTS: null, + ADD_ALL_ARTIFACTS_TO_UNASSIGNED: null, - ADD_MODULE: null, - REMOVE_MODULE: null, - RENAME_MODULE: null, - FILL_HEAT_SETUP_CACHE: null, - FILE_ASSIGN_CHANGED: null, + ADD_MODULE: null, + REMOVE_MODULE: null, + RENAME_MODULE: null, + FILL_HEAT_SETUP_CACHE: null, + FILE_ASSIGN_CHANGED: null, - MANIFEST_LOADED: null, + MANIFEST_LOADED: null, - GO_TO_VALIDATION: null, - IN_VALIDATION: null -}); + GO_TO_VALIDATION: null, + IN_VALIDATION: null + }, + 'heatSetup' +); export const fileTypes = { YAML: { label: 'yaml', regex: /(yaml|yml)/g }, diff --git a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/validation/HeatValidationConstants.js b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/validation/HeatValidationConstants.js index 8c9f54b5ba..f461cbd40a 100644 --- a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/validation/HeatValidationConstants.js +++ b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/validation/HeatValidationConstants.js @@ -1,5 +1,5 @@ /*! - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * Copyright © 2016-2018 European Support Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,11 +16,14 @@ import keyMirror from 'nfvo-utils/KeyMirror.js'; import i18n from 'nfvo-utils/i18n/i18n.js'; -export const actionTypes = keyMirror({ - TOGGLE_EXPANDED: null, - SELECTED_NODE: null, - UNSELECTED_NODE: null -}); +export const actionTypes = keyMirror( + { + TOGGLE_EXPANDED: null, + SELECTED_NODE: null, + UNSELECTED_NODE: null + }, + 'heatValidation' +); export const errorTypes = keyMirror({ MISSING_FILE_IN_ZIP: i18n('missing file in zip'), |