]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: add PreallocationSelector
authorLorenz Stechauner <l.stechauner@proxmox.com>
Tue, 12 Oct 2021 12:32:33 +0000 (14:32 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 21 Oct 2021 10:14:38 +0000 (12:14 +0200)
Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
Tested-by: Fabian Ebner <f.ebner@proxmox.com>
www/manager6/Makefile
www/manager6/form/PreallocationSelector.js [new file with mode: 0644]

index 3d1778c232ec9f28345b6cf9fe442691e3f9aa07..e5e85aedee1b1cacbcba855e4afe75007eafd88a 100644 (file)
@@ -49,6 +49,7 @@ JSSRC=                                                        \
        form/PCISelector.js                             \
        form/PermPathSelector.js                        \
        form/PoolSelector.js                            \
+       form/PreallocationSelector.js                   \
        form/PrivilegesSelector.js                      \
        form/QemuBiosSelector.js                        \
        form/SDNControllerSelector.js                   \
diff --git a/www/manager6/form/PreallocationSelector.js b/www/manager6/form/PreallocationSelector.js
new file mode 100644 (file)
index 0000000..49ea95b
--- /dev/null
@@ -0,0 +1,11 @@
+Ext.define('PVE.form.preallocationSelector', {
+    extend: 'Proxmox.form.KVComboBox',
+    alias: ['widget.pvePreallocationSelector'],
+    comboItems: [
+       ['__default__', Proxmox.Utils.defaultText],
+       ['off', 'Off'],
+       ['metadata', 'Metadata'],
+       ['falloc', 'Full (posix_fallocate)'],
+       ['full', 'Full'],
+    ],
+});