From fa829ea7c42264e08a728a0554c0b08be22cfe6c Mon Sep 17 00:00:00 2001 From: "Jingwei.Zhang" Date: Wed, 11 Oct 2023 12:38:10 +0800 Subject: [PATCH] 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 --- src/components/PrometheusChart/ChartCard.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/PrometheusChart/ChartCard.jsx b/src/components/PrometheusChart/ChartCard.jsx index ee33f2e2..5a2171d2 100644 --- a/src/components/PrometheusChart/ChartCard.jsx +++ b/src/components/PrometheusChart/ChartCard.jsx @@ -73,6 +73,7 @@ const ChartCard = (props) => { handleDataParams, fetchDataParams, isModal = false, + fetchPrometheusFunc, } = props; const defaultNode = {}; const { params: fParams = {} } = fetchDataParams; @@ -106,6 +107,7 @@ const ChartCard = (props) => { }} visibleHeight={props.chartProps.height} chartConfig={{ + fetchPrometheusFunc, chartCardList: [ { title,