Skip to content

Commit

Permalink
Fix buildConfig filter
Browse files Browse the repository at this point in the history
  • Loading branch information
vikram-raj committed Jun 19, 2023
1 parent 2ad2c26 commit 50e42de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions frontend/public/components/build-config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,14 @@ export const BuildConfigsPage: React.FC<BuildConfigsPageProps> = (props) => {
items: allStrategies,
},
{
filterGroupName: t('public~Build status'),
type: 'build-status',
filterGroupName: t('public~BuildRun status'),
type: 'build-run-status',
reducer: buildStatus,
items: statusFilters,
filter: (filterValue, build: BuildConfig): boolean => {
const status = build?.latestBuild?.status?.phase;
return !filterValue.selected?.length || (status && filterValue.selected.includes(status));
},
},
];

Expand Down
2 changes: 1 addition & 1 deletion frontend/public/locales/en/public.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"Source": "Source",
"Custom": "Custom",
"Build strategy": "Build strategy",
"Build status": "Build status",
"BuildRun status": "BuildRun status",
"Pipeline build logs are available through Jenkins (linked below)": "Pipeline build logs are available through Jenkins (linked below)",
"A link to the Jenkins pipeline build logs will appear below when the build starts": "A link to the Jenkins pipeline build logs will appear below when the build starts",
"See Jenkins log": "See Jenkins log",
Expand Down

0 comments on commit 50e42de

Please sign in to comment.