From 69fae923135084a46497376c8685b40d5fda3750 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Wed, 6 Aug 2025 19:42:33 +0000 Subject: [PATCH] add mp selector to config --- web/scripts/config.js | 3 ++- web/templates/config.go.tmpl | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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}}