Skip to content

Commit

Permalink
Registry hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
sdess09 committed Sep 21, 2023
1 parent 4a09e0e commit 55604a2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 15 deletions.
4 changes: 4 additions & 0 deletions dashboard/src/components/image-selector/ImageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ const ImageItem = styled.div<{ lastItem: boolean; isSelected: boolean }>`
color: #ffffff;
align-items: center;
padding: 10px 0px;
user-select: text;
cursor: text;
cursor: pointer;
background: ${(props) => (props.isSelected ? "#ffffff11" : "")};
:hover {
Expand All @@ -341,6 +343,8 @@ const LoadingWrapper = styled.div`
font-size: 13px;
justify-content: center;
color: #ffffff44;
user-select: text;
cursor: text;
`;

const ExpandedWrapper = styled.div`
Expand Down
2 changes: 2 additions & 0 deletions dashboard/src/components/image-selector/ImageSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ const ImageItem = styled.div`
width: 100%;
font-size: 13px;
border-bottom: 1px solid
user-select: text;
cursor: text;
${(props: { lastItem: boolean; isSelected: boolean }) =>
props.lastItem ? "#00000000" : "#606166"};
color: #ffffff;
Expand Down
25 changes: 12 additions & 13 deletions dashboard/src/components/image-selector/TagList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ var ecrRepoRegex = /(^[a-zA-Z0-9][a-zA-Z0-9-_]*)\.dkr\.ecr(\-fips)?\.([a-zA-Z0-9

type PropsType =
| {
setSelectedTag: (x: string) => void;
selectedTag: string;
selectedImageUrl: string;
registryId: number;
readOnly?: boolean;
}
setSelectedTag: (x: string) => void;
selectedTag: string;
selectedImageUrl: string;
registryId: number;
readOnly?: boolean;
}
| {
setSelectedTag?: (x: string) => void;
selectedTag: string;
selectedImageUrl: string;
registryId: number;
readOnly: true;
};
setSelectedTag?: (x: string) => void;
selectedTag: string;
selectedImageUrl: string;
registryId: number;
readOnly: true;
};

type StateType = {
loading: boolean;
Expand Down Expand Up @@ -196,7 +196,6 @@ const TagName = styled.div<{ lastItem?: boolean; isSelected?: boolean }>`
border-bottom: 1px solid
${(props) => (props.lastItem ? "#00000000" : "#606166")};
color: #ffffff;
user-select: none;
align-items: center;
padding: 10px 0px;
cursor: pointer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const RegistryImageList: React.FC<{
setImageList(res.data);
})
.catch(console.error);
return () => {};
return () => { };
}, []);

const getIcon = () => {
Expand Down Expand Up @@ -90,7 +90,8 @@ const ImageRow = styled.div<{ isLast?: boolean }>`
align-items: center;
font-size: 13px;
padding: 12px;
user-select: text;
> img {
width: 20px;
filter: grayscale(100%);
Expand All @@ -105,4 +106,5 @@ const ImageList = styled.div`
overflow-y: auto;
background: #ffffff11;
margin: 20px 0 20px;
user-select: text;
`;

0 comments on commit 55604a2

Please sign in to comment.