Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame^] | 1 | /*- |
| 2 | * ============LICENSE_START======================================================= |
| 3 | * SDC |
| 4 | * ================================================================================ |
| 5 | * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. |
| 6 | * ================================================================================ |
| 7 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | * you may not use this file except in compliance with the License. |
| 9 | * You may obtain a copy of the License at |
| 10 | * |
| 11 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | * |
| 13 | * Unless required by applicable law or agreed to in writing, software |
| 14 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | * See the License for the specific language governing permissions and |
| 17 | * limitations under the License. |
| 18 | * ============LICENSE_END========================================================= |
| 19 | */ |
| 20 | |
| 21 | import keyMirror from 'nfvo-utils/KeyMirror.js'; |
| 22 | import i18n from 'nfvo-utils/i18n/i18n.js'; |
| 23 | |
| 24 | export const actionTypes = keyMirror({ |
| 25 | LICENSE_AGREEMENT_LIST_LOADED: null, |
| 26 | ADD_LICENSE_AGREEMENT: null, |
| 27 | EDIT_LICENSE_AGREEMENT: null, |
| 28 | DELETE_LICENSE_AGREEMENT: null, |
| 29 | LICENSE_AGREEMENT_DELETE_CONFIRM: null, |
| 30 | |
| 31 | licenseAgreementEditor: { |
| 32 | OPEN: null, |
| 33 | CLOSE: null, |
| 34 | DATA_CHANGED: null, |
| 35 | SELECT_TAB: null, |
| 36 | SELECT_FEATURE_GROUPS_BUTTONTAB: null, |
| 37 | } |
| 38 | |
| 39 | }); |
| 40 | |
| 41 | export const enums = keyMirror({ |
| 42 | SELECTED_LICENSE_AGREEMENT_TAB: { |
| 43 | GENERAL: 1, |
| 44 | FEATURE_GROUPS: 2 |
| 45 | }, |
| 46 | |
| 47 | SELECTED_FEATURE_GROUPS_BUTTONTAB: { |
| 48 | ASSOCIATED_FEATURE_GROUPS: 1, |
| 49 | AVAILABLE_FEATURE_GROUPS: 2 |
| 50 | } |
| 51 | }); |
| 52 | |
| 53 | export const defaultState = { |
| 54 | LICENSE_AGREEMENT_EDITOR_DATA: { |
| 55 | licenseTerm: {choice: '', other: ''} |
| 56 | } |
| 57 | }; |
| 58 | |
| 59 | export const optionsInputValues = { |
| 60 | LICENSE_MODEL_TYPE: [ |
| 61 | {enum: '', title: i18n('please select…')}, |
| 62 | {enum: 'Fixed_Term', title: 'Fixed Term'}, |
| 63 | {enum: 'Perpetual', title: 'Perpetual'}, |
| 64 | {enum: 'Unlimited', title: 'Unlimited'} |
| 65 | ] |
| 66 | }; |