canonical / lxd-ui

Easy and accessible container and virtual machine management. A browser interface for LXD
GNU General Public License v3.0
242 stars 30 forks source link

Hide volume snapshot in "Choose custom volume" model #777

Closed lijunle closed 1 month ago

lijunle commented 1 month ago

When choose to attach a disk to a container / VM, it opens the "Choose custom volume" model.

Screenshot 2024-05-16 at 01 24 53

The model shows the custom volume with its snapshots. I could expect the snapshot should not be shown here. At least, we should hide them by default and provide a checkbox to show snapshots.

Screenshot 2024-05-16 at 01 25 28

Related code here:

https://github.com/canonical/lxd-ui/blob/487ba59852dfec8c15601102df4ac8e41d7c04e9/src/pages/storage/CustomVolumeSelectModal.tsx#L29-L38

edlerd commented 1 month ago

Thank you for reaching out and reporting this issue. Indeed, this is a bug and can be fixed shortly.