Add clean up policy to the topic overview (#718)

This commit is contained in:
Alexander Krivonosov 2021-07-26 23:13:31 +03:00 committed by GitHub
parent 978091d92c
commit 38e1d12452
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,6 +30,7 @@ const Overview: React.FC<Props> = ({
segmentCount,
clusterName,
topicName,
cleanUpPolicy,
clearTopicMessages,
}) => {
const { isReadOnly } = React.useContext(ClusterContext);
@ -59,6 +60,9 @@ const Overview: React.FC<Props> = ({
<BytesFormatted value={segmentSize} />
</Indicator>
<Indicator label="Segment count">{segmentCount}</Indicator>
<Indicator label="Clean Up Policy">
<span className="tag is-info">{cleanUpPolicy || 'Unknown'}</span>
</Indicator>
</MetricsWrapper>
<div className="box">
<table className="table is-striped is-fullwidth">