2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 * Copyright © 2017-2018 Amdocs
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END=========================================================
22 tierSupportActionTypes
23 } from 'app/tierSupport/TierSupportConstants.js';
25 getSetGlobalMessageEvent,
26 getClearGlobalMessageEvent
27 } from 'app/globalInlineMessageBar/GlobalInlineMessageBarActions.js';
29 function createOnNodeDetailsChangeEvent(newDetails) {
31 type: tierSupportActionTypes.TS_GRAPH_NODE_SELECTED,
36 function createSplitPaneResizeEvent(initialLoad) {
38 type: tierSupportActionTypes.SPLIT_PANE_RESIZE,
43 function createOnNodeMenuSelectEvent(selectedMenu) {
45 type: tierSupportActionTypes.TS_GRAPH_NODE_MENU_SELECTED,
50 export function onNodeDetailsChange(newDetails) {
52 dispatch(createOnNodeDetailsChangeEvent(newDetails));
56 export function splitPaneResize(initialLoad) {
58 dispatch(createSplitPaneResizeEvent(initialLoad));
62 export function onNodeMenuChange(selectedMenu) {
64 dispatch(createOnNodeMenuSelectEvent(selectedMenu));
68 export function clearVIData() {
70 type: tierSupportActionTypes.TIER_SUPPORT_CLEAR_DATA
74 export function setNotificationText(msgText, msgSeverity) {
75 if (msgText.length > 0) {
78 getSetGlobalMessageEvent(msgText, msgSeverity));
82 dispatch(getClearGlobalMessageEvent());