Am 04.03.22 um 12:52 schrieb Matthias Heiserer:
> Signed-off-by: Matthias Heiserer <m.heise...@proxmox.com>
> ---
>  www/manager6/Utils.js | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
> 
> diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
> index aafe359a..650eeee9 100644
> --- a/www/manager6/Utils.js
> +++ b/www/manager6/Utils.js
> @@ -1803,6 +1803,26 @@ Ext.define('PVE.Utils', {
>  
>       return undefined;
>      },
> +
> +    get_type_icon_cls: function(volid, format) {

This name is too generic if it doesn't mention 'backup'.

> +     var cls = '';
> +     if (PVE.Utils.volume_is_qemu_backup(volid, format)) {
> +         cls = 'fa-desktop';
> +     } else if (PVE.Utils.volume_is_lxc_backup(volid, format)) {
> +         cls = 'fa-cube';
> +     }
> +     return cls;
> +    },
> +
> +    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 {
> +         throw 'Unknown backup type';
> +     }
> +    },
>  },
>  
>      singleton: true,


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to