Commit 57dc77fe authored by Dietmar Maurer's avatar Dietmar Maurer

GUI: allow to add ZFS storage

parent 3936e994
...@@ -156,23 +156,23 @@ Ext.define('PVE.dc.StorageView', { ...@@ -156,23 +156,23 @@ Ext.define('PVE.dc.StorageView', {
win.on('destroy', reload); win.on('destroy', reload);
win.show(); win.show();
} }
} },
/* the following type are conidered unstable
* so we do not enable that on the GUI for now
{ {
text: PVE.Utils.format_storage_type('sheepdog'), text: PVE.Utils.format_storage_type('zfs'),
iconCls: 'pve-itype-icon-network-server', iconCls: 'pve-itype-icon-network-server',
handler: function() { handler: function() {
var win = Ext.create('PVE.storage.SheepdogEdit', {}); var win = Ext.create('PVE.storage.ZFSEdit', {});
win.on('destroy', reload); win.on('destroy', reload);
win.show(); win.show();
} }
}, }
/* the following type are conidered unstable
* so we do not enable that on the GUI for now
{ {
text: PVE.Utils.format_storage_type('zfs'), text: PVE.Utils.format_storage_type('sheepdog'),
iconCls: 'pve-itype-icon-network-server', iconCls: 'pve-itype-icon-network-server',
handler: function() { handler: function() {
var win = Ext.create('PVE.storage.ZFSEdit', {}); var win = Ext.create('PVE.storage.SheepdogEdit', {});
win.on('destroy', reload); win.on('destroy', reload);
win.show(); win.show();
} }
......
...@@ -58,7 +58,7 @@ Ext.define('PVE.storage.ZFSInputPanel', { ...@@ -58,7 +58,7 @@ Ext.define('PVE.storage.ZFSInputPanel', {
xtype: me.create ? 'textfield' : 'displayfield', xtype: me.create ? 'textfield' : 'displayfield',
name: 'target', name: 'target',
height: 22, // hack: set same height as text fields height: 22, // hack: set same height as text fields
value: 'iqn.2010-09.org.openindiana:omnios:....', value: '',
fieldLabel: gettext('Target'), fieldLabel: gettext('Target'),
allowBlank: false allowBlank: false
}, },
......
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