Skip to content

Commit

Permalink
fix(storage) link images from storage pool used by section and displa…
Browse files Browse the repository at this point in the history
…y the project name for images

Signed-off-by: David Edler <[email protected]>
  • Loading branch information
edlerd committed Jan 17, 2024
1 parent 6180c5c commit 629ae88
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/pages/storage/StorageUsedBy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ const StorageUsedBy: FC<Props> = ({ storage, project }) => {
<td>
<ExpandableList
items={data[IMAGES].map((item) => (
<ImageName
key={`${item.name}-${item.project}`}
id={item.name}
project={item.project}
/>
<div key={`${item.name}-${item.project}`}>
<Link to={`/ui/project/${item.project}/images`}>
<ImageName id={item.name} project={item.project} />
</Link>
{item.project !== project && ` (project ${item.project})`}
</div>
))}
/>
</td>
Expand Down Expand Up @@ -106,8 +107,8 @@ const StorageUsedBy: FC<Props> = ({ storage, project }) => {
to={`/ui/project/${item.project}/storage/detail/${storage.name}/custom/${item.name}`}
>
{item.name}
{item.project !== project && ` (project ${item.project})`}
</Link>
{item.project !== project && ` (project ${item.project})`}
</div>
))}
/>
Expand Down

0 comments on commit 629ae88

Please sign in to comment.