]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: storages: add basic BTRFS edit/add window
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 23 Jun 2021 20:59:29 +0000 (22:59 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 23 Jun 2021 20:59:29 +0000 (22:59 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/Makefile
www/manager6/Utils.js
www/manager6/storage/BTRFSEdit.js [new file with mode: 0644]

index ff8ad00f965572e670ac14934590c35212ff304b..3e3fb6eb3c80638241a43f2978205a0c832aeafe 100644 (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                              \
index 3415c9ebdd0818fab17def90336e7c78b6365d82..3fdf37d343558b57f8f7e4bb35725caf5ec9ac67 100644 (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',
diff --git a/www/manager6/storage/BTRFSEdit.js b/www/manager6/storage/BTRFSEdit.js
new file mode 100644 (file)
index 0000000..32581e9
--- /dev/null
@@ -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();
+    },
+});