backup config: add icons to tab buttons

From a UX perspective flat buttons, i.e. buttons without a frame or
background, are not obviously clickable without an icon.

The choice of icons was taken from the storageSchema map in PVE.Utils
module currently residing in the pve-manager repo.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
 [TL: clarify where the choice come from and other small nits]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Maximiliano Sandoval 2023-09-06 15:09:07 +02:00 committed by Thomas Lamprecht
parent 891bd7f17b
commit b9f0d5afde

View File

@ -12,11 +12,13 @@ Ext.define('PMG.BackupConfiguration', {
itemId: 'local', itemId: 'local',
title: gettext('Local Backup/Restore'), title: gettext('Local Backup/Restore'),
xtype: 'pmgBackupRestore', xtype: 'pmgBackupRestore',
iconCls: 'fa fa-folder',
}, },
{ {
itemId: 'proxmoxbackupserver', itemId: 'proxmoxbackupserver',
title: 'Proxmox Backup Server', title: 'Proxmox Backup Server',
xtype: 'pmgPBSConfig', xtype: 'pmgPBSConfig',
iconCls: 'fa fa-floppy-o',
}, },
], ],
}); });