2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 import keyMirror from 'nfvo-utils/KeyMirror.js';
23 export const actionTypes = keyMirror({
24 FEATURE_GROUPS_LIST_LOADED: null,
25 ADD_FEATURE_GROUPS: null,
26 EDIT_FEATURE_GROUPS: null,
27 DELETE_FEATURE_GROUPS: null,
28 FEATURE_GROUPS_DELETE_CONFIRM: null,
31 ENTITLEMENT_POOLS_LIST_LOADED: null,
33 featureGroupsEditor: {
38 SELECTED_ENTITLEMENT_POOLS_BUTTONTAB: null,
39 SELECTED_LICENSE_KEY_GROUPS_BUTTONTAB: null
43 export const state = keyMirror({
44 SELECTED_FEATURE_GROUP_TAB: {
49 SELECTED_ENTITLEMENT_POOLS_BUTTONTAB: {
50 ASSOCIATED_ENTITLEMENT_POOLS: 1,
51 AVAILABLE_ENTITLEMENT_POOLS: 2
53 SELECTED_LICENSE_KEY_GROUPS_BUTTONTAB: {
54 ASSOCIATED_LICENSE_KEY_GROUPS: 1,
55 AVAILABLE_LICENSE_KEY_GROUPS: 2