[pve-devel] [RFC PATCH manager 4/5] ui: ScheduleSimulator: add rownumberer column
Dominik Csapak
d.csapak at proxmox.com
Wed Jan 18 15:35:22 CET 2023
so it's clear what the first time is, for that we have to disable
sorting, since the rownumberer will not sort with it
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
not sure if it's worth losing the sorting...
www/manager6/window/ScheduleSimulator.js | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/www/manager6/window/ScheduleSimulator.js b/www/manager6/window/ScheduleSimulator.js
index 6b02cbc98..7e708b43f 100644
--- a/www/manager6/window/ScheduleSimulator.js
+++ b/www/manager6/window/ScheduleSimulator.js
@@ -104,10 +104,15 @@ Ext.define('PVE.window.ScheduleSimulator', {
scrollable: true,
height: 300,
columns: [
+ {
+ xtype: 'rownumberer',
+ width: 35,
+ },
{
text: gettext('Date'),
renderer: 'renderDate',
dataIndex: 'timestamp',
+ sortable: false,
flex: 1,
},
{
@@ -115,6 +120,7 @@ Ext.define('PVE.window.ScheduleSimulator', {
renderer: 'renderTime',
dataIndex: 'timestamp',
align: 'right',
+ sortable: false,
flex: 1,
},
],
--
2.30.2
More information about the pve-devel
mailing list