This is an automated email from the ASF dual-hosted git repository.
ckj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new cb9caca398 HDDS-7575. Correct showing of RATIS-THREE icon in Recon UI
(#4026)
cb9caca398 is described below
commit cb9caca39828066f99353efb498d6915bbaf1da9
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]