[pbs-devel] [PATCH proxmox-backup 1/2] ui: dashboard: fix missing prune jobs on task summary

Dominik Csapak d.csapak at proxmox.com
Wed May 3 14:25:17 CEST 2023


we want to count types 'prune' and 'prunejobs' for this

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/Dashboard.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/www/Dashboard.js b/www/Dashboard.js
index 4a7d84c4..64f15789 100644
--- a/www/Dashboard.js
+++ b/www/Dashboard.js
@@ -106,6 +106,10 @@ Ext.define('PBS.Dashboard', {
 		    type = 'verify';
 		}
 
+		if (type.startsWith('prune')) {
+		    type = 'prune';
+		}
+
 		if (data[type] && task.status) {
 		    let parsed = Proxmox.Utils.parse_task_status(task.status);
 		    data[type][parsed]++;
-- 
2.30.2






More information about the pbs-devel mailing list