[pbs-devel] [PATCH widget-toolkit 1/1] add form/TaskTypeSelector
Dominik Csapak
d.csapak at proxmox.com
Fri Oct 30 15:02:09 CET 2020
for suggesting workery types when we want to filter by them
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/Makefile | 1 +
src/form/TaskTypeSelector.js | 12 ++++++++++++
2 files changed, 13 insertions(+)
create mode 100644 src/form/TaskTypeSelector.js
diff --git a/src/Makefile b/src/Makefile
index f984ac7..2117da5 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -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 \
diff --git a/src/form/TaskTypeSelector.js b/src/form/TaskTypeSelector.js
new file mode 100644
index 0000000..b370cb4
--- /dev/null
+++ b/src/form/TaskTypeSelector.js
@@ -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();
+ },
+});
--
2.20.1
More information about the pbs-devel
mailing list