]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: Dashboard/TaskSummary: add Verifies to the Summary
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 6 Oct 2020 10:25:27 +0000 (12:25 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 6 Oct 2020 10:58:52 +0000 (12:58 +0200)
and count every type that starts with 'verify' (e.g. verifyjob)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/Dashboard.js
www/dashboard/TaskSummary.js

index 5c9d5c3ae060aa3117c50d968a396d3ff9678848..961100df37944f6ca30ca0467ba4eb7c103ee0e3 100644 (file)
@@ -136,6 +136,7 @@ Ext.define('PBS.Dashboard', {
        updateTasks: function(store, records, success) {
            if (!success) return;
            let me = this;
+           let viewModel = me.getViewModel();
 
            records.sort((a, b) => a.data.duration - b.data.duration);
            let top10 = records.slice(-10);
@@ -146,6 +147,7 @@ Ext.define('PBS.Dashboard', {
                prune: { error: 0, warning: 0, ok: 0 },
                garbage_collection: { error: 0, warning: 0, ok: 0 },
                sync: { error: 0, warning: 0, ok: 0 },
+               verify: { error: 0, warning: 0, ok: 0 },
            };
 
            records.forEach(record => {
@@ -154,6 +156,10 @@ Ext.define('PBS.Dashboard', {
                    type = 'sync';
                }
 
+               if (type.startsWith('verify')) {
+                   type = 'verify';
+               }
+
                if (data[type] && record.data.status) {
                    let parsed = Proxmox.Utils.parse_task_status(record.data.status);
                    data[type][parsed]++;
index c50957510834b9fa1016c056331c49974ad23e04..58393e1df716719a48aecf3ee5a98f9e65c3a178 100644 (file)
@@ -12,6 +12,7 @@ Ext.define('PBS.TaskSummary', {
            "prune",
            "garbage_collection",
            "sync",
+           "verify",
        ],
 
        titles: {