Commit 54338383 authored by Michael Rasmussen's avatar Michael Rasmussen Committed by Dietmar Maurer

Latest-changes-which-removes-unused-config

Signed-off-by: 's avatarMichael Rasmussen <mir@datanom.net>
parent c5750188
......@@ -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 \
......
......@@ -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 {
......
......@@ -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();
}
}
*/
]
})
......
......@@ -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);
......
......@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment