Skip to content

Commit

Permalink
fix(copy) update network forward and storage pool copy
Browse files Browse the repository at this point in the history
Signed-off-by: David Edler <[email protected]>
  • Loading branch information
edlerd authored and mas-who committed Feb 1, 2024
1 parent 3d00c0a commit 2d112d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/pages/networks/forms/NetworkForwardForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ const NetworkForwardForm: FC<Props> = ({
<br />
{network?.config["ipv4.address"] && (
<>
IPv4 subnet: {network?.config["ipv4.address"]}
IPv4: {network?.config["ipv4.address"]}
<br />
</>
)}
{network?.config["ipv6.address"] && (
<>IPv6 subnet: {network?.config["ipv6.address"]}</>
<>IPv6: {network?.config["ipv6.address"]}</>
)}
</Notification>
</Row>
Expand Down
10 changes: 6 additions & 4 deletions src/pages/storage/StorageUsedBy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ const INSTANCES = "Instances";
const PROFILES = "Profiles";
const IMAGES = "Images";
const SNAPSHOTS = "Snapshots";
const CUSTOM = "Custom";
const CUSTOM_VOLUMES = "Custom volumes";

const StorageUsedBy: FC<Props> = ({ storage, project }) => {
const data: Record<string, LxdUsedBy[]> = {
[INSTANCES]: filterUsedByType("instances", storage.used_by),
[PROFILES]: filterUsedByType("profiles", storage.used_by),
[IMAGES]: filterUsedByType("images", storage.used_by),
[SNAPSHOTS]: filterUsedByType("snapshots", storage.used_by),
[CUSTOM]: filterUsedByType("volumes", storage.used_by),
[CUSTOM_VOLUMES]: filterUsedByType("volumes", storage.used_by),
};

return (
Expand Down Expand Up @@ -98,10 +98,12 @@ const StorageUsedBy: FC<Props> = ({ storage, project }) => {
</td>
</tr>
<tr>
<th className="p-muted-heading">Custom ({data[CUSTOM].length})</th>
<th className="p-muted-heading">
Custom volumes ({data[CUSTOM_VOLUMES].length})
</th>
<td>
<ExpandableList
items={data[CUSTOM].map((item) => (
items={data[CUSTOM_VOLUMES].map((item) => (
<div key={`${item.name}-${item.project}`}>
<Link
to={`/ui/project/${item.project}/storage/detail/${storage.name}/volumes/custom/${item.name}`}
Expand Down

0 comments on commit 2d112d4

Please sign in to comment.