smitajoshi12 commented on code in PR #3789:
URL: https://github.com/apache/ozone/pull/3789#discussion_r990756850
##########
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/diskUsage/diskUsage.tsx:
##########
@@ -409,30 +422,44 @@ export class DiskUsage extends
React.Component<Record<string, object>, IDUState>
{(duResponse.size > 0) ?
((duResponse.size > 0 && duResponse.subPathCount === 0) ?
<div style={{height: 800}}>
+ <div className='metadatainformation'>
<br/> {' '}
- <h3>This object is a key with a file size of
{this.byteToSize(duResponse.size, 1)}.<br/> {' '}
You can also view its metadata details by clicking the
top right button.
- </h3>
- </div> :
+ </div>
+ <Plot
+ data={plotData}
+ layout={
+ {
+ width: 800,
+ height: 750,
+ font: {
+ family: 'Roboto, sans-serif',
+ size: 15
+ },
+ showlegend: true,
+ title: 'Disk Usage for ' + returnPath + ' (Total Size:
' + this.byteToSize(duResponse.size, 1) + ')'
+ }
+ }/>
+ </div>
+ :
Review Comment:
There are two condition If (duResponse.size > 0 && duResponse.subPathCount
=== 0) as per siyao need to show empty Pie chart no further clicks on this
pie chart. If condition is false show regular pie chart as suggested by siyao.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]