Signed-off-by: Matthias Heiserer <m.heise...@proxmox.com> --- no changes from v3.
changes from v2: return in else branch changes from v1: add "backup" to name www/manager6/Utils.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js index 735806aa..8c76cdb2 100644 --- a/www/manager6/Utils.js +++ b/www/manager6/Utils.js @@ -1800,6 +1800,26 @@ Ext.define('PVE.Utils', { return undefined; }, + + get_backup_type_icon_cls: function(volid, format) { + if (PVE.Utils.volume_is_qemu_backup(volid, format)) { + return 'fa-desktop'; + } else if (PVE.Utils.volume_is_lxc_backup(volid, format)) { + return 'fa-cube'; + } else { + return ''; + } + }, + + get_backup_type: function(volid, format) { + if (PVE.Utils.volume_is_qemu_backup(volid, format)) { + return 'qemu'; + } else if (PVE.Utils.volume_is_lxc_backup(volid, format)) { + return 'lxc'; + } else { + return ''; + } + }, }, singleton: true, -- 2.30.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel