Skip to content

Commit

Permalink
Merge pull request #19189 from jeclrsg/hpcc-32775-queries-status-columns
Browse files Browse the repository at this point in the history
HPCC-32775 ECL Watch v9 fix Queries list status columns
  • Loading branch information
GordonSmith authored Oct 14, 2024
2 parents 466880d + ce797e1 commit c0c4bc8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions esp/src/src-react/components/Queries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ export const Queries: React.FunctionComponent<QueriesProps> = ({
headerTooltip: nlsHPCC.ErrorWarnings,
width: 16,
sortable: false,
formatter: (error) => {
if (error > 0) {
formatter: (error, row) => {
if (row.ErrorCount > 0) {
return <Icon iconName="Warning" />;
}
return "";
Expand All @@ -133,8 +133,9 @@ export const Queries: React.FunctionComponent<QueriesProps> = ({
headerTooltip: nlsHPCC.MixedNodeStates,
width: 16,
sortable: false,
formatter: (mixed) => {
if (mixed === true) {
formatter: (mixed, row) => {
const mixedStates = row.Clusters.ClusterQueryState[0]?.MixedNodeStates ?? false;
if (mixedStates === true) {
return <Icon iconName="Error" />;
}
return "";
Expand All @@ -144,8 +145,8 @@ export const Queries: React.FunctionComponent<QueriesProps> = ({
headerIcon: "SkypeCircleCheck",
headerTooltip: nlsHPCC.Active,
width: 16,
formatter: (activated) => {
if (activated === true) {
formatter: (activated, row) => {
if (row.Activated === true) {
return <Icon iconName="SkypeCircleCheck" />;
}
return "";
Expand Down

0 comments on commit c0c4bc8

Please sign in to comment.