ui: add PreallocationSelector

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>
This commit is contained in:
Lorenz Stechauner 2021-10-12 14:32:33 +02:00 committed by Thomas Lamprecht
parent d8da55382a
commit 418e9c13ae
2 changed files with 12 additions and 0 deletions

View 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 \

View File

@ -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'],
],
});