Polish pod status in basic info
@@ -172,8 +172,20 @@ class ComponentBasicInfoRaw extends React.PureComponent<Props, State> {
}
}
});
+ let displayInfo = "";
+ if (running > 0) {
+ displayInfo += `Running: ${running} `;
+ }
+
+ if (pending > 0) {
+ displayInfo += `Pending: ${pending} `;
+ }
+
+ if (error > 0) {
+ displayInfo += `Error: ${error} `;
+ }
- return `Running: ${running}, Pending: ${pending}, Error: ${error}`;
+ return displayInfo;
};
private renderComponentCPU = () => {
