pmg-gui/js/BackupConfiguration.js
Maximiliano Sandoval b9f0d5afde 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>
2023-09-07 08:12:22 +02:00

26 lines
498 B
JavaScript

Ext.define('PMG.BackupConfiguration', {
extend: 'Ext.tab.Panel',
alias: 'widget.pmgBackupConfiguration',
title: gettext('Backup'),
border: false,
defaults: { border: false },
items: [
{
itemId: 'local',
title: gettext('Local Backup/Restore'),
xtype: 'pmgBackupRestore',
iconCls: 'fa fa-folder',
},
{
itemId: 'proxmoxbackupserver',
title: 'Proxmox Backup Server',
xtype: 'pmgPBSConfig',
iconCls: 'fa fa-floppy-o',
},
],
});