[pbs-devel] [PATCH proxmox-backup 2/2] ui: prune jobs: add enabled column in grid
Dominik Csapak
d.csapak at proxmox.com
Fri Apr 26 08:27:31 CEST 2024
so one can see if the jobs are enabled or disabled
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
alternatively we could override the render for the schedule itself,
to either show '-' like we do for all other jobs that are disabled by
removing the schedule, or add smthg like `(disabled)` to the schedule
though what this patch does is the same we have for backup jobs in pve
www/config/PruneView.js | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/www/config/PruneView.js b/www/config/PruneView.js
index 94bb7dd61..d4b0841d4 100644
--- a/www/config/PruneView.js
+++ b/www/config/PruneView.js
@@ -14,6 +14,10 @@ Ext.define('pbs-prune-jobs-status', {
},
},
'comment',
+ {
+ name: 'enabled',
+ calculate: data => !data.disable,
+ },
],
idProperty: 'id',
proxy: {
@@ -171,6 +175,14 @@ Ext.define('PBS.config.PruneJobView', {
},
columns: [
+ {
+ header: gettext('Enabled'),
+ width: 80,
+ dataIndex: 'enabled',
+ align: 'center',
+ renderer: Proxmox.Utils.renderEnabledIcon,
+ sortable: true,
+ },
{
header: gettext('Job ID'),
dataIndex: 'id',
--
2.39.2
More information about the pbs-devel
mailing list