Commit b0c95a5c authored by Wolfgang Link's avatar Wolfgang Link Committed by Dietmar Maurer

Gui storage: bind ZFSPoolEdit.js and set defaults

Signed-off-by: 's avatarWolfgang Link <w.link@proxmox.com>
parent 5f7b9719
......@@ -161,6 +161,7 @@ JSSRC= \
storage/RBDEdit.js \
storage/SheepdogEdit.js \
storage/ZFSEdit.js \
storage/ZFSPoolEdit.js \
dc/Summary.js \
dc/OptionView.js \
dc/StorageView.js \
......
......@@ -714,6 +714,8 @@ Ext.define('PVE.Utils', { statics: {
return 'Sheepdog';
} else if (value === 'zfs') {
return 'ZFS';
} else if (value === 'zfspool') {
return 'ZFSPool';
} else if (value === 'iscsidirect') {
return 'iSCSIDirect';
} else {
......
......@@ -49,6 +49,8 @@ Ext.define('PVE.dc.StorageView', {
editor = 'PVE.storage.SheepdogEdit';
} else if (type === 'zfs') {
editor = 'PVE.storage.ZFSEdit';
} else if (type === 'zfspool') {
editor = 'PVE.storage.ZFSPoolEdit';
} else {
return;
}
......@@ -165,7 +167,17 @@ Ext.define('PVE.dc.StorageView', {
win.on('destroy', reload);
win.show();
}
}
},
{
text: PVE.Utils.format_storage_type('zfspool'),
iconCls: 'pve-itype-icon-storage',
handler: function() {
var win = Ext.create('PVE.storage.ZFSPoolEdit', {});
win.on('destroy', reload);
win.show();
}
},
/* the following type are conidered unstable
* so we do not enable that on the GUI for now
{
......
......@@ -69,7 +69,8 @@ Ext.define('PVE.window.Clone', {
rec.data.type === 'rbd' ||
rec.data.type === 'iscsi' ||
rec.data.type === 'sheepdog' ||
rec.data.type === 'zfs'
rec.data.type === 'zfs' ||
rec.data.type === 'zfspool'
) {
me.formatsel.setValue('raw');
me.formatsel.setDisabled(true);
......
......@@ -174,7 +174,8 @@ Ext.define('PVE.qemu.HDInputPanel', {
} else if (rec.data.type === 'lvm' ||
rec.data.type === 'rbd' ||
rec.data.type === 'sheepdog' ||
rec.data.type === 'zfs') {
rec.data.type === 'zfs' ||
rec.data.type === 'zfspool') {
me.hdfilesel.setDisabled(true);
me.hdfilesel.setVisible(false);
me.formatsel.setValue('raw');
......
......@@ -77,8 +77,8 @@ Ext.define('PVE.window.HDMove', {
} else if (rec.data.type === 'lvm' ||
rec.data.type === 'rbd' ||
rec.data.type === 'sheepdog' ||
rec.data.type === 'zfs'
rec.data.type === 'zfs' ||
rec.data.type === 'zfspool'
) {
me.formatsel.setValue('raw');
me.formatsel.setDisabled(true);
......
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