From dfc1b58fedfbf9bfb4ec383192d67bcb4a7f6dd4 Mon Sep 17 00:00:00 2001 From: leoliu Date: Tue, 25 Aug 2020 17:27:31 +0800 Subject: [PATCH] fix: Fix log collection detail info Signed-off-by: leoliu --- .../Detail/Configuration/index.jsx | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/pages/clusters/containers/LogCollections/Detail/Configuration/index.jsx b/src/pages/clusters/containers/LogCollections/Detail/Configuration/index.jsx index 2f71c480e49..2eae6e1910f 100644 --- a/src/pages/clusters/containers/LogCollections/Detail/Configuration/index.jsx +++ b/src/pages/clusters/containers/LogCollections/Detail/Configuration/index.jsx @@ -30,21 +30,30 @@ import styles from './index.scss' export default class Configuration extends React.Component { render() { const detail = get(this.props.detailStore, 'detail', {}) - const { address, config = {} } = detail + const { address, config = {}, type } = detail return ( + {type === 'kafka' && ( + + )} - + {type === 'es' && ( + + )} )