Skip to content

Commit

Permalink
fix: Fix log collection detail info
Browse files Browse the repository at this point in the history
Signed-off-by: leoliu <leoliu@yunify.com>
  • Loading branch information
leoliu committed Aug 25, 2020
1 parent 185ebc6 commit dfc1b58
Showing 1 changed file with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Panel>
<Attributes className={styles.attributes}>
{type === 'kafka' && (
<Attributes.Item
className={styles.item}
name={t('topic')}
value={config.topics}
/>
)}
<Attributes.Item
className={styles.item}
name={t('Address')}
value={address}
/>
<Attributes.Item
className={styles.item}
name={t('Index Prefix')}
value={config.logstashPrefix}
/>
{type === 'es' && (
<Attributes.Item
className={styles.item}
name={t('Index Prefix')}
value={config.logstashPrefix}
/>
)}
</Attributes>
</Panel>
)
Expand Down

0 comments on commit dfc1b58

Please sign in to comment.