add mp selector to config
This commit is contained in:
@@ -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}`;
|
||||||
|
@@ -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>
|
||||||
|
Reference in New Issue
Block a user