[pve-devel] applied: [PATCH proxmox-widget-toolkit 2/2] task description: use 'Backup Job' if no id is set
Thomas Lamprecht
t.lamprecht at proxmox.com
Fri Jun 5 15:13:39 CEST 2020
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 at proxmox.com>
---
Utils.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Utils.js b/Utils.js
index 0b2d1d4..7cb7bf4 100644
--- 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') ],
--
2.20.1
More information about the pve-devel
mailing list