mirror of
				https://git.proxmox.com/git/pmg-gui
				synced 2025-11-04 02:27:52 +00:00 
			
		
		
		
	In some languages, e.g. widely used English, "Delete" and "Deliver" are looking rather similar without too much eye squinting required. Add an accent on their icons using for, at least in the western hemisphere, the respective associated color, like red for trash can. To 1) avoid to much messing with those cultures that got it switched and 2) some more common color blindness use blue for the delivery button, just to make it stand out. Keep the white/black list as is, as such accents work best if not everything uses them, i.e., so that they more common options actually stand out. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
		
			
				
	
	
		
			32 lines
		
	
	
		
			684 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			684 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
Ext.define('PMG.menu.SpamContextMenu', {
 | 
						|
    extend: 'PMG.menu.QuarantineContextMenu',
 | 
						|
 | 
						|
    items: [
 | 
						|
	{
 | 
						|
	    text: gettext('Deliver'),
 | 
						|
	    iconCls: 'fa fa-fw fa-paper-plane-o info-blue',
 | 
						|
	    action: 'deliver',
 | 
						|
	    handler: 'callCallback',
 | 
						|
	},
 | 
						|
	{
 | 
						|
	    text: gettext('Delete'),
 | 
						|
	    iconCls: 'fa fa-fw fa-trash-o critical',
 | 
						|
	    action: 'delete',
 | 
						|
	    handler: 'callCallback',
 | 
						|
	},
 | 
						|
	{ xtype: 'menuseparator' },
 | 
						|
	{
 | 
						|
	    text: gettext('Whitelist'),
 | 
						|
	    iconCls: 'fa fa-fw fa-check',
 | 
						|
	    action: 'whitelist',
 | 
						|
	    handler: 'callCallback',
 | 
						|
	},
 | 
						|
	{
 | 
						|
	    text: gettext('Blacklist'),
 | 
						|
	    iconCls: 'fa fa-fw fa-times',
 | 
						|
	    action: 'blacklist',
 | 
						|
	    handler: 'callCallback',
 | 
						|
	},
 | 
						|
    ],
 | 
						|
});
 |