-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Description
Most likely introduced with #1582. The disk size input is supposed to update if the image is changed to one that's too big for the current size.
console/app/components/form/fields/ImageSelectField.tsx
Lines 32 to 39 in 65ae121
| onChange={(id) => { | |
| const image = images.find((i) => i.id === id)! // if it's selected, it must be present | |
| const imageSizeGiB = image.size / GiB | |
| if (diskSizeField.value < imageSizeGiB) { | |
| const nearest10 = Math.ceil(imageSizeGiB / 10) * 10 | |
| diskSizeField.onChange(nearest10) | |
| } | |
| }} |
2023-11-29-disk-size-input-bug.mp4
Metadata
Metadata
Assignees
Labels
No labels