mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 10:42:21 +00:00
ui: storages: add basic BTRFS edit/add window
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
6e3ca3d351
commit
ffeb4f57e6
@ -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 \
|
||||
|
@ -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',
|
||||
|
37
www/manager6/storage/BTRFSEdit.js
Normal file
37
www/manager6/storage/BTRFSEdit.js
Normal 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();
|
||||
},
|
||||
});
|
Loading…
Reference in New Issue
Block a user