summaryrefslogtreecommitdiffstats
path: root/src/app/tierSupport
diff options
context:
space:
mode:
authorsteventh <steve.thomas@amdocs.com>2018-02-27 11:40:28 -0500
committersteventh <steve.thomas@amdocs.com>2018-02-27 14:50:13 -0500
commite97e160e9d9d93b7e45c30166f4a0fec6b2e613d (patch)
treec69e7067624b3057eae27dca7bf0d4be179a2e82 /src/app/tierSupport
parent9fcc0c271c53041e7e196182af51368fbce7dd3f (diff)
Adding Violation History to DIO
Issue-ID: AAI-817 Change-Id: I2fbdbea3eedc568ef7046d83496890969a0c85ec Signed-off-by: steventh <steve.thomas@amdocs.com>
Diffstat (limited to 'src/app/tierSupport')
-rw-r--r--src/app/tierSupport/TierSupport.jsx20
-rw-r--r--src/app/tierSupport/TierSupportConstants.js3
-rw-r--r--src/app/tierSupport/TierSupportReducer.js9
3 files changed, 29 insertions, 3 deletions
diff --git a/src/app/tierSupport/TierSupport.jsx b/src/app/tierSupport/TierSupport.jsx
index e51dde8..8495955 100644
--- a/src/app/tierSupport/TierSupport.jsx
+++ b/src/app/tierSupport/TierSupport.jsx
@@ -31,6 +31,10 @@ import ForceDirectedGraph from 'generic-components/graph/ForceDirectedGraph.jsx'
import SelectedNodeDetails from 'app/tierSupport/selectedNodeDetails/SelectedNodeDetails.jsx';
+import {
+ overlayNetworkCallback,
+} from '../MainScreenWrapperActionHelper.js';
+
import overlaysDetails from 'resources/overlays/overlaysDetails.json';
import * as Overlays from 'app/overlays/OverlayImports.js';
@@ -48,6 +52,7 @@ import {
TSUI_NODE_DETAILS_INITIAL_WIDTH,
TSUI_NODE_DETAILS_MIN_WIDTH,
TSUI_GRAPH_MENU_NODE_DETAILS,
+ tierSupportActionTypes
} from './TierSupportConstants.js';
let mapStateToProps = (
@@ -114,6 +119,9 @@ let mapActionToProps = (dispatch) => {
},
onRequestClearData: () => {
dispatch(clearVIData());
+ },
+ onOverlayNetworkCallback: (apiUrl, body, viewName, curViewData, responseEventKey) => {
+ dispatch(overlayNetworkCallback(apiUrl, body, viewName, curViewData, responseEventKey));
}
};
};
@@ -259,7 +267,17 @@ class TierSupport extends Component {
if (this.isNotEmpty(this.props.nodeData) && overlayComponent) {
if (Overlays.default.hasOwnProperty(overlayComponent)) {
let OverlayComponent = Overlays.default[overlayComponent];
- secondOverlay = <OverlayComponent nodeDetails={this.props.nodeData}/>;
+ secondOverlay = <OverlayComponent
+ nodeDetails={this.props.nodeData}
+ networkingCallback={(apiUrl, body, paramName, curViewData) => {
+ this.props.onOverlayNetworkCallback(
+ apiUrl,
+ body,
+ paramName,
+ curViewData,
+ tierSupportActionTypes.TS_OVERLAY_NETWORK_CALLBACK_RESPONSE_RECEIVED);
+ }} />;
+
}
}
return secondOverlay;
diff --git a/src/app/tierSupport/TierSupportConstants.js b/src/app/tierSupport/TierSupportConstants.js
index d66816e..202f70c 100644
--- a/src/app/tierSupport/TierSupportConstants.js
+++ b/src/app/tierSupport/TierSupportConstants.js
@@ -34,7 +34,8 @@ export const tierSupportActionTypes = keyMirror({
SPLIT_PANE_RESIZE: null,
TIER_SUPPORT_CLEAR_DATA: null,
TIER_SUPPORT_ACTIVATE_BUSY_FEEDBACK: null,
- TIER_SUPPORT_DISABLE_BUSY_FEEDBACK: null
+ TIER_SUPPORT_DISABLE_BUSY_FEEDBACK: null,
+ TS_OVERLAY_NETWORK_CALLBACK_RESPONSE_RECEIVED: null
});
export const TSUI_NODE_DETAILS_INITIAL_WIDTH = 300;
diff --git a/src/app/tierSupport/TierSupportReducer.js b/src/app/tierSupport/TierSupportReducer.js
index c9a4faf..7062360 100644
--- a/src/app/tierSupport/TierSupportReducer.js
+++ b/src/app/tierSupport/TierSupportReducer.js
@@ -98,7 +98,7 @@ export default combineReducers({
return {
...state,
enableBusyFeedback: false
- };
+ };
case globalAutoCompleteSearchBarActionTypes.SEARCH_WARNING_EVENT:
let emptyNodesAndLinksWarningEvent = ForceDirectedGraph.generateNewProps([], [], {});
return {
@@ -118,6 +118,13 @@ export default combineReducers({
} else {
return state;
}
+ case tierSupportActionTypes.TS_OVERLAY_NETWORK_CALLBACK_RESPONSE_RECEIVED:
+ let newNodeData = JSON.parse(JSON.stringify(action.data.curData));
+ newNodeData[action.data.paramName] = action.data.overlayData;
+ return {
+ ...state,
+ nodeData: newNodeData
+ };
}
return state;