* ============LICENSE_START=======================================================
* org.onap.aai
* ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
+ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright © 2017-2018 Amdocs
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
*/
-
import React, {Component} from 'react';
import {connect} from 'react-redux';
import SplitPane from 'react-split-pane';
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';
TSUI_NODE_DETAILS_INITIAL_WIDTH,
TSUI_NODE_DETAILS_MIN_WIDTH,
TSUI_GRAPH_MENU_NODE_DETAILS,
+ tierSupportActionTypes
} from './TierSupportConstants.js';
let mapStateToProps = (
},
onRequestClearData: () => {
dispatch(clearVIData());
+ },
+ onOverlayNetworkCallback: (apiUrl, body, viewName, curViewData, responseEventKey) => {
+ dispatch(overlayNetworkCallback(apiUrl, body, viewName, curViewData, responseEventKey));
}
};
};
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;