mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-08 21:27:00 +00:00
qemu/HDEdit: whitespace cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
134b4017eb
commit
7a6e0635cf
@ -70,7 +70,7 @@ Ext.define('PVE.qemu.HDInputPanel', {
|
|||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
var confid = me.confid || (values.controller + values.deviceid);
|
var confid = me.confid || (values.controller + values.deviceid);
|
||||||
|
|
||||||
if (me.unused) {
|
if (me.unused) {
|
||||||
me.drive.file = me.vmconfig[values.unusedId];
|
me.drive.file = me.vmconfig[values.unusedId];
|
||||||
confid = values.controller + values.deviceid;
|
confid = values.controller + values.deviceid;
|
||||||
@ -82,7 +82,7 @@ Ext.define('PVE.qemu.HDInputPanel', {
|
|||||||
}
|
}
|
||||||
me.drive.format = values.diskformat;
|
me.drive.format = values.diskformat;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (values.nobackup) {
|
if (values.nobackup) {
|
||||||
me.drive.backup = 'no';
|
me.drive.backup = 'no';
|
||||||
} else {
|
} else {
|
||||||
@ -114,10 +114,10 @@ Ext.define('PVE.qemu.HDInputPanel', {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var params = {};
|
var params = {};
|
||||||
|
|
||||||
params[confid] = PVE.Parser.printQemuDrive(me.drive);
|
params[confid] = PVE.Parser.printQemuDrive(me.drive);
|
||||||
|
|
||||||
return params;
|
return params;
|
||||||
},
|
},
|
||||||
|
|
||||||
setVMConfig: function(vmconfig) {
|
setVMConfig: function(vmconfig) {
|
||||||
@ -129,7 +129,7 @@ Ext.define('PVE.qemu.HDInputPanel', {
|
|||||||
me.bussel.setVMConfig(vmconfig, true);
|
me.bussel.setVMConfig(vmconfig, true);
|
||||||
}
|
}
|
||||||
if (me.unusedDisks) {
|
if (me.unusedDisks) {
|
||||||
var disklist = [];
|
var disklist = [];
|
||||||
Ext.Object.each(vmconfig, function(key, value) {
|
Ext.Object.each(vmconfig, function(key, value) {
|
||||||
if (key.match(/^unused\d+$/)) {
|
if (key.match(/^unused\d+$/)) {
|
||||||
disklist.push([key, value]);
|
disklist.push([key, value]);
|
||||||
@ -185,7 +185,7 @@ Ext.define('PVE.qemu.HDInputPanel', {
|
|||||||
|
|
||||||
if (me.unused) {
|
if (me.unused) {
|
||||||
me.unusedDisks = Ext.create('PVE.form.KVComboBox', {
|
me.unusedDisks = Ext.create('PVE.form.KVComboBox', {
|
||||||
name: 'unusedId',
|
name: 'unusedId',
|
||||||
fieldLabel: gettext('Disk image'),
|
fieldLabel: gettext('Disk image'),
|
||||||
matchFieldWidth: false,
|
matchFieldWidth: false,
|
||||||
listConfig: {
|
listConfig: {
|
||||||
@ -294,8 +294,8 @@ Ext.define('PVE.qemu.HDEdit', {
|
|||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
var nodename = me.pveSelNode.data.node;
|
var nodename = me.pveSelNode.data.node;
|
||||||
if (!nodename) {
|
if (!nodename) {
|
||||||
throw "no node name specified";
|
throw "no node name specified";
|
||||||
}
|
}
|
||||||
|
|
||||||
var unused = me.confid && me.confid.match(/^unused\d+$/);
|
var unused = me.confid && me.confid.match(/^unused\d+$/);
|
||||||
|
Loading…
Reference in New Issue
Block a user