]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: dashboard: show tape backups/restores on task summary
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 3 May 2023 12:25:18 +0000 (14:25 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 May 2023 09:23:54 +0000 (11:23 +0200)
for that we have to increase the panel height a bit

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

index 64f15789f8a221b5cabe54110b4944183d41aac6..8d6a8d8e5c45c8f3cd8a365f456221a084400fe0 100644 (file)
@@ -93,6 +93,8 @@ Ext.define('PBS.Dashboard', {
                garbage_collection: { error: 0, warning: 0, ok: 0 },
                sync: { error: 0, warning: 0, ok: 0 },
                verify: { error: 0, warning: 0, ok: 0 },
+               'tape-backup': { error: 0, warning: 0, ok: 0 },
+               'tape-restore': { error: 0, warning: 0, ok: 0 },
            };
 
            records.forEach(record => {
@@ -110,6 +112,10 @@ Ext.define('PBS.Dashboard', {
                    type = 'prune';
                }
 
+               if (type.startsWith('tape-backup')) {
+                   type = 'tape-backup';
+               }
+
                if (data[type] && task.status) {
                    let parsed = Proxmox.Utils.parse_task_status(task.status);
                    data[type][parsed]++;
@@ -258,13 +264,13 @@ Ext.define('PBS.Dashboard', {
                Ext.String.format(gettext('{0} days'), '{days}') + ')',
            },
            xtype: 'pbsTaskSummary',
-           height: 200,
+           height: 250,
            reference: 'tasksummary',
        },
        {
            iconCls: 'fa fa-ticket',
            title: 'Subscription',
-           height: 200,
+           height: 250,
            reference: 'subscription',
            xtype: 'pbsSubscriptionInfo',
        },
index ac2b6292c3afefcbac024054623be0d55c1eb00c..68f6f6ef3b9684a174950b24f01463dd8a556aa2 100644 (file)
@@ -17,6 +17,8 @@ Ext.define('PBS.TaskSummary', {
        "garbage_collection",
        "sync",
        "verify",
+       "tape-backup",
+       "tape-restore",
     ],
 
     typeFilterMap: {
@@ -29,6 +31,8 @@ Ext.define('PBS.TaskSummary', {
        "garbage_collection": gettext('Garbage collections'),
        "sync": gettext('Syncs'),
        "verify": gettext('Verify'),
+       "tape-backup": gettext('Tape Backup'),
+       "tape-restore": gettext('Tape Restore'),
     },
 
     // set true to show the onclick panel as modal grid