fix: support custom fetch for detail monitor modal

support use custom fetch when click the extend icon in the monitor chart card

Change-Id: Ibbe4cf0ae22fa6523f1968ab99fab972c2e9331a
This commit is contained in:
Jingwei.Zhang 2023-10-11 12:38:10 +08:00
parent a8e7670082
commit fa829ea7c4

View File

@ -73,6 +73,7 @@ const ChartCard = (props) => {
handleDataParams, handleDataParams,
fetchDataParams, fetchDataParams,
isModal = false, isModal = false,
fetchPrometheusFunc,
} = props; } = props;
const defaultNode = {}; const defaultNode = {};
const { params: fParams = {} } = fetchDataParams; const { params: fParams = {} } = fetchDataParams;
@ -106,6 +107,7 @@ const ChartCard = (props) => {
}} }}
visibleHeight={props.chartProps.height} visibleHeight={props.chartProps.height}
chartConfig={{ chartConfig={{
fetchPrometheusFunc,
chartCardList: [ chartCardList: [
{ {
title, title,