Skip to content

Commit 269304d

Browse files
authored
Merge pull request #160 from keithchong/CorrectSyncStatusValues
fix: Correct Sync Status values
2 parents 966fc7f + 868d335 commit 269304d

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

src/gitops/Statuses/SyncStatus.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as React from 'react';
22
import {
33
OutOfSyncIcon,
4-
SyncFailedIcon,
54
SyncUnknownIcon,
65
} from 'src/gitops/utils/components/Icons/Icons';
76
import { SyncStatus as SS } from 'src/gitops/utils/constants';
@@ -16,12 +15,8 @@ const SyncStatus: React.FC<SyncProps> = ({ status }) => {
1615
let targetIcon: React.ReactNode;
1716
if (status === SS.SYNCED) {
1817
targetIcon = <GreenCheckCircleIcon />;
19-
} else if (status === SS.SYNCED_FAILED) {
20-
targetIcon = <SyncFailedIcon />;
2118
} else if (status === SS.OUT_OF_SYNC) {
2219
targetIcon = <OutOfSyncIcon />;
23-
} else if (status === SS.PRUNE_SKIPPED) {
24-
targetIcon = <OutOfSyncIcon />;
2520
} else {
2621
targetIcon = <SyncUnknownIcon />;
2722
}

src/gitops/components/application/History/History.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ const useRowsDV = (history: ApplicationHistory[], app: ApplicationKind): DataVie
135135
);
136136
} else if (obj.revisions && app.spec.sources) {
137137
const rv: React.ReactNode[] = [];
138-
obj.revisions.forEach((revision, index) => {
138+
obj.revisions?.forEach((revision, index) => {
139139
rv.push(
140140
<>
141141
<Revision

src/gitops/utils/constants.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ export const DEFAULT_NAMESPACE = 'default';
22

33
export enum SyncStatus {
44
SYNCED = 'Synced',
5-
SYNCED_FAILED = 'SyncFailed',
65
OUT_OF_SYNC = 'OutOfSync',
7-
PRUNE_SKIPPED = 'PruneSkipped',
86
UNKNOWN = 'Unknown',
97
}
108

0 commit comments

Comments
 (0)