combine if paths

we had the same actions for different if paths,
now they are combined
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2016-03-03 14:28:46 +01:00 committed by Dietmar Maurer
parent 065db62f9c
commit eb751f7ab5

View File

@ -71,15 +71,13 @@ Ext.define('PVE.window.HDMove', {
listeners: {
change: function(f, value) {
var rec = f.store.getById(value);
if (rec.data.type === 'iscsi') {
me.formatsel.setValue('raw');
me.formatsel.setDisabled(true);
} else if (rec.data.type === 'lvm' ||
rec.data.type === 'lvmthin' ||
rec.data.type === 'rbd' ||
rec.data.type === 'sheepdog' ||
rec.data.type === 'zfs' ||
rec.data.type === 'zfspool'
if (rec.data.type === 'iscsi' ||
rec.data.type === 'lvm' ||
rec.data.type === 'lvmthin' ||
rec.data.type === 'rbd' ||
rec.data.type === 'sheepdog' ||
rec.data.type === 'zfs' ||
rec.data.type === 'zfspool'
) {
me.formatsel.setValue('raw');
me.formatsel.setDisabled(true);