mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-03-22 05:01:45 +00:00
fix: shall update hotpluggable when change to a non-iso image (#713)
Signed-off-by: Tim Liou <tim.liou@suse.com>
This commit is contained in:
parent
da83f04b6c
commit
93f027a57c
@ -297,12 +297,13 @@ export default {
|
|||||||
if (isIsoImage) {
|
if (isIsoImage) {
|
||||||
this.value['type'] = 'cd-rom';
|
this.value['type'] = 'cd-rom';
|
||||||
this.value['bus'] = 'sata';
|
this.value['bus'] = 'sata';
|
||||||
this.updateHotpluggable();
|
|
||||||
} else {
|
} else {
|
||||||
this.value['type'] = 'disk';
|
this.value['type'] = 'disk';
|
||||||
this.value['bus'] = 'virtio';
|
this.value['bus'] = 'virtio';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.updateHotpluggable();
|
||||||
|
|
||||||
if (imageSize) {
|
if (imageSize) {
|
||||||
let imageSizeGiB = Math.ceil(imageSize / 1024 / 1024 / 1024);
|
let imageSizeGiB = Math.ceil(imageSize / 1024 / 1024 / 1024);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user