diff --git a/web/scripts/config.js b/web/scripts/config.js index a5b17b5..e52e466 100644 --- a/web/scripts/config.js +++ b/web/scripts/config.js @@ -73,7 +73,8 @@ class VolumeAction extends HTMLElement { const device = form.get("device"); this.setStatusLoading(); const body = { - source: this.dataset.volume.replace("unused", "") + source: this.dataset.volume.replace("unused", ""), + mp: form.get("mp") }; const prefix = type === "qemu" ? "scsi" : "mp"; const disk = `${prefix}${device}`; diff --git a/web/templates/config.go.tmpl b/web/templates/config.go.tmpl index fb7806d..47b67a7 100644 --- a/web/templates/config.go.tmpl +++ b/web/templates/config.go.tmpl @@ -278,6 +278,8 @@ {{else}} + + {{end}}