pmg-gui/js/SpamContextMenu.js
Thomas Lamprecht c87d46fbe8 tree wide: eslint --fix
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-23 13:17:15 +02:00

44 lines
863 B
JavaScript

Ext.define('PMG.menu.SpamContextMenu', {
extend: 'Ext.menu.Menu',
showSeparator: false,
controller: {
xclass: 'Ext.app.ViewController',
callCallback: function(btn) {
var me = this.getView();
if (Ext.isFunction(me.callback)) {
me.callback(btn.action);
}
},
},
items: [
{
text: gettext('Deliver'),
iconCls: 'fa fa-fw fa-paper-plane-o',
action: 'deliver',
handler: 'callCallback',
},
{
text: gettext('Delete'),
iconCls: 'fa fa-fw fa-trash-o',
action: 'delete',
handler: 'callCallback',
},
{ xtype: 'menuseparator' },
{
text: gettext('Whitelist'),
iconCls: 'fa fa-fw fa-check',
action: 'whitelist',
handler: 'action',
},
{
text: gettext('Blacklist'),
iconCls: 'fa fa-fw fa-times',
action: 'blacklist',
handler: 'action',
},
],
});