ui: storages: add basic BTRFS edit/add window

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-06-23 22:59:29 +02:00
parent 6e3ca3d351
commit ffeb4f57e6
3 changed files with 44 additions and 0 deletions

View File

@ -264,6 +264,7 @@ JSSRC= \
storage/IScsiEdit.js \
storage/LVMEdit.js \
storage/LvmThinEdit.js \
storage/BTRFSEdit.js \
storage/NFSEdit.js \
storage/PBSEdit.js \
storage/RBDEdit.js \

View File

@ -771,6 +771,12 @@ Ext.define('PVE.Utils', {
faIcon: 'folder',
backups: false,
},
btrfs: {
name: 'BTRFS',
ipanel: 'BTRFSInputPanel',
faIcon: 'folder',
backups: true,
},
nfs: {
name: 'NFS',
ipanel: 'NFSInputPanel',

View File

@ -0,0 +1,37 @@
Ext.define('PVE.storage.BTRFSInputPanel', {
extend: 'PVE.panel.StorageBase',
onlineHelp: 'storage_btrfs',
initComponent: function() {
let me = this;
me.column1 = [
{
xtype: me.isCreate ? 'textfield' : 'displayfield',
name: 'path',
value: '',
fieldLabel: gettext('Path'),
allowBlank: false,
},
{
xtype: 'pveContentTypeSelector',
name: 'content',
value: ['images', 'rootdir'],
multiSelect: true,
fieldLabel: gettext('Content'),
allowBlank: false,
},
];
me.columnB = [
{
xtype: 'displayfield',
userCls: 'pmx-hint',
value: `BTRFS integration is currently a technology preview.`,
},
];
me.callParent();
},
});