Latest-changes-which-removes-unused-config

Signed-off-by: Michael Rasmussen <mir@datanom.net>
This commit is contained in:
Michael Rasmussen 2013-10-03 17:49:49 +02:00 committed by Dietmar Maurer
parent bcd1d77cdd
commit 7995b6ebcc
5 changed files with 18 additions and 2 deletions

View File

@ -135,6 +135,7 @@ JSSRC= \
storage/RBDEdit.js \
storage/SheepdogEdit.js \
storage/NexentaEdit.js \
storage/ZFSEdit.js \
dc/Summary.js \
dc/OptionView.js \
dc/StorageView.js \

View File

@ -692,6 +692,8 @@ Ext.define('PVE.Utils', { statics: {
return 'Sheepdog';
} else if (value === 'nexenta') {
return 'Nexenta';
} else if (value === 'zfs') {
return 'ZFS';
} else if (value === 'iscsidirect') {
return 'iSCSIDirect';
} else {

View File

@ -48,6 +48,8 @@ Ext.define('PVE.dc.StorageView', {
editor = 'PVE.storage.SheepdogEdit';
} else if (type === 'nexenta') {
editor = 'PVE.storage.NexentaEdit';
} else if (type === 'zfs') {
editor = 'PVE.storage.ZFSEdit';
} else {
return;
}
@ -175,6 +177,15 @@ Ext.define('PVE.dc.StorageView', {
win.show();
}
},
{
text: PVE.Utils.format_storage_type('ZFS'),
iconCls: 'pve-itype-icon-node',
handler: function() {
var win = Ext.create('PVE.storage.ZFSEdit', {});
win.on('destroy', reload);
win.show();
}
}
*/
]
})

View File

@ -69,7 +69,8 @@ Ext.define('PVE.window.Clone', {
rec.data.type === 'rbd' ||
rec.data.type === 'iscsi' ||
rec.data.type === 'sheepdog' ||
rec.data.type === 'nexenta'
rec.data.type === 'nexenta' ||
rec.data.type === 'zfs'
) {
me.formatsel.setValue('raw');
me.formatsel.setDisabled(true);

View File

@ -192,7 +192,8 @@ Ext.define('PVE.qemu.HDInputPanel', {
} else if (rec.data.type === 'lvm' ||
rec.data.type === 'rbd' ||
rec.data.type === 'sheepdog' ||
rec.data.type === 'nexenta') {
rec.data.type === 'nexenta' ||
rec.data.type === 'zfs') {
me.hdfilesel.setDisabled(true);
me.hdfilesel.setVisible(false);
me.formatsel.setValue('raw');