[pmg-devel] [PATCH pmg-gui v2] js/BackupConfiguration: Add icons to tab buttons

Maximiliano Sandoval m.sandoval at proxmox.com
Wed Sep 6 08:55:37 CEST 2023


Flat buttons are not obviously clickable without an icon.

The choice of icons was taken from pve-manager/www/manager6/Utils.js.

Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
Differences from v1:
  - Use the `fa-database` icon for local backups as suggested by Dominik
  
 js/BackupConfiguration.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/js/BackupConfiguration.js b/js/BackupConfiguration.js
index e21771f..7122822 100644
--- a/js/BackupConfiguration.js
+++ b/js/BackupConfiguration.js
@@ -12,11 +12,13 @@ Ext.define('PMG.BackupConfiguration', {
 	    itemId: 'local',
 	    title: gettext('Local Backup/Restore'),
 	    xtype: 'pmgBackupRestore',
+	    iconCls: 'fa fa-database',
 	},
 	{
 	    itemId: 'proxmoxbackupserver',
 	    title: 'Proxmox Backup Server',
 	    xtype: 'pmgPBSConfig',
+	    iconCls: 'fa fa-floppy-o',
 	},
    ],
 });
-- 
2.39.2





More information about the pmg-devel mailing list