add form/TaskTypeSelector

for suggesting workery types when we want to filter by them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-10-30 15:02:09 +01:00 committed by Thomas Lamprecht
parent 57ba4cdcb3
commit 050c168499
2 changed files with 13 additions and 0 deletions

View File

@ -31,6 +31,7 @@ JSSRC= \
form/RoleSelector.js \
form/DiskSelector.js \
form/MultiDiskSelector.js \
form/TaskTypeSelector.js \
button/Button.js \
button/HelpButton.js \
grid/ObjectGrid.js \

View File

@ -0,0 +1,12 @@
Ext.define('Proxmox.form.TaskTypeSelector', {
extend: 'Ext.form.field.ComboBox',
alias: 'widget.pmxTaskTypeSelector',
anyMatch: true,
initComponent: function() {
let me = this;
me.store = Object.keys(Proxmox.Utils.task_desc_table).sort();
me.callParent();
},
});