Skip to content

Commit

Permalink
feat: search image with full name in Environment page
Browse files Browse the repository at this point in the history
  • Loading branch information
agatha197 committed Oct 10, 2024
1 parent 23b5f81 commit 9b09251
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion react/src/components/ImageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ const ImageList: React.FC<{ style?: React.CSSProperties }> = ({ style }) => {
isCustomized: image?.tag
? image.tag.indexOf('customized') !== -1
: false,
fullName: getImageFullName(image) || '',
};
});
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down Expand Up @@ -378,13 +379,15 @@ const ImageList: React.FC<{ style?: React.CSSProperties }> = ({ style }) => {
: false;
const langMatch = regExp.test(curFilterValues.lang);
const namespaceMatch = regExp.test(curFilterValues.namespace);
const fullNameMatch = regExp.test(curFilterValues.fullName);
return (
baseVersionMatch ||
baseImagesMatch ||
constraintsMatch ||
langMatch ||
namespaceMatch ||
customizedMatch
customizedMatch ||
fullNameMatch
);
});
});
Expand Down

0 comments on commit 9b09251

Please sign in to comment.