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:
Dominik Csapak 2016-03-18 14:36:10 +01:00 committed by Dietmar Maurer
parent 566b968005
commit dfd981678c
3 changed files with 7 additions and 1 deletions

View File

@ -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);

View File

@ -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' ||

View File

@ -59,7 +59,7 @@ Ext.define('PVE.window.HDResize', {
bodyPadding: 10,
border: false,
fieldDefaults: {
labelWidth: 120,
labelWidth: 140,
anchor: '100%'
},
items: items