ext6migrate: fix HDEdit, HDMove, HDResize
the StorageSelector fires the change event one time before data is there, this patch catches that also make the hdresize window wider because of the bigger font Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
566b968005
commit
dfd981678c
@ -169,6 +169,9 @@ Ext.define('PVE.qemu.HDInputPanel', {
|
||||
allowBlank: false,
|
||||
listeners: {
|
||||
change: function(f, value) {
|
||||
if (!value) { // initial store loading fires an unwanted 'change'
|
||||
return;
|
||||
}
|
||||
var rec = f.store.getById(value);
|
||||
if (rec.data.type === 'iscsi') {
|
||||
me.hdfilesel.setStorage(value);
|
||||
|
@ -70,6 +70,9 @@ Ext.define('PVE.window.HDMove', {
|
||||
hidden: false,
|
||||
listeners: {
|
||||
change: function(f, value) {
|
||||
if (!value) { // initial store loading fires an unwanted 'change
|
||||
return;
|
||||
}
|
||||
var rec = f.store.getById(value);
|
||||
if (rec.data.type === 'iscsi' ||
|
||||
rec.data.type === 'lvm' ||
|
||||
|
@ -59,7 +59,7 @@ Ext.define('PVE.window.HDResize', {
|
||||
bodyPadding: 10,
|
||||
border: false,
|
||||
fieldDefaults: {
|
||||
labelWidth: 120,
|
||||
labelWidth: 140,
|
||||
anchor: '100%'
|
||||
},
|
||||
items: items
|
||||
|
Loading…
x
Reference in New Issue
Block a user