add mp selector to config

This commit is contained in:
2025-08-06 19:42:33 +00:00
parent a79dd96d2a
commit 69fae92313
2 changed files with 4 additions and 1 deletions

View File

@@ -73,7 +73,8 @@ class VolumeAction extends HTMLElement {
const device = form.get("device"); const device = form.get("device");
this.setStatusLoading(); this.setStatusLoading();
const body = { 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 prefix = type === "qemu" ? "scsi" : "mp";
const disk = `${prefix}${device}`; const disk = `${prefix}${device}`;

View File

@@ -278,6 +278,8 @@
{{else}} {{else}}
<label for="device">MP</label> <label for="device">MP</label>
<input class="w3-input w3-border" name="device" id="device" type="number" min="0" max="255" required> <input class="w3-input w3-border" name="device" id="device" type="number" min="0" max="255" required>
<label for="device">Path</label>
<input class="w3-input w3-border" name="mp" id="mp" required>
{{end}} {{end}}
</form> </form>
</div> </div>