This is an automated email from the ASF dual-hosted git repository.
ckj pushed a commit to branch ozone-1.3
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/ozone-1.3 by this push:
new c4450ad19e HDDS-7575. Correct showing of RATIS-THREE icon in Recon UI
(#4026)
c4450ad19e is described below
commit c4450ad19e64d3af6efda4c36a87818791659673
Author: Symious <[email protected]>
AuthorDate: Fri Dec 2 10:39:10 2022 +0800
HDDS-7575. Correct showing of RATIS-THREE icon in Recon UI (#4026)
---
.../webapps/recon/ozone-recon-web/src/utils/themeIcons.tsx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/utils/themeIcons.tsx
b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/utils/themeIcons.tsx
index 986863861e..07240c1033 100644
---
a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/utils/themeIcons.tsx
+++
b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/utils/themeIcons.tsx
@@ -34,12 +34,12 @@ export class FilledIcon extends React.Component {
}
interface IRatisIconProps {
- replicationFactor: number;
+ replicationFactor: string;
isLeader: boolean;
}
interface IReplicationIconProps {
- replicationFactor: number;
+ replicationFactor: string;
replicationType: string;
leaderNode: string;
isLeader: boolean;
@@ -49,7 +49,7 @@ export class RatisIcon extends
React.PureComponent<IRatisIconProps> {
render() {
const {replicationFactor, isLeader} = this.props;
const threeFactorClass = isLeader ? 'icon-text-three-dots-leader' :
'icon-text-three-dots';
- const textClass = replicationFactor >= 3 ? threeFactorClass :
'icon-text-one-dot';
+ const textClass = replicationFactor === "THREE" ? threeFactorClass :
'icon-text-one-dot';
return (
<div className='ratis-icon'>
<div className={textClass}>R</div>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]