]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
task description: use 'Backup Job' if no id is set
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 5 Jun 2020 13:09:35 +0000 (15:09 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 5 Jun 2020 13:09:37 +0000 (15:09 +0200)
We set the id for vzdump tasks only for single VM/CT backups, so if
it's undefined we got a job for sure.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Utils.js

index 0b2d1d43432ea95d94dcba3315daf2e806da1f2c..7cb7bf49e88f81e5e5f0bfaa1e49853b05f65d7f 100644 (file)
--- a/Utils.js
+++ b/Utils.js
@@ -614,7 +614,7 @@ Ext.define('Proxmox.Utils', { utilities: {
        imgdel: ['', gettext('Erase data') ],
        unknownimgdel: ['', gettext('Destroy image from unknown guest') ],
        download: ['', gettext('Download') ],
-       vzdump: ['VM/CT', gettext('Backup') ],
+       vzdump: (type, id) => id ? `VM/CT ${id} - ${gettext('Backup')}` : gettext('Backup Job'),
        aptupdate: ['', gettext('Update package database') ],
        startall: [ '', gettext('Start all VMs and Containers') ],
        stopall: [ '', gettext('Stop all VMs and Containers') ],