pmg-gui/js/QuarantineContextMenu.js
Thomas Lamprecht ce7acf1733 fix color coding mistake for one context menu
left over from initially trying out different stuff

meh, would be a lot simpler if there weren't a 5 copies or so from
that stuff.

Reported-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-10-28 07:46:21 +02:00

33 lines
648 B
JavaScript

Ext.define('PMG.menu.QuarantineContextMenu', {
extend: 'Ext.menu.Menu',
xtype: 'pmgQuarantineMenu',
showSeparator: false,
controller: {
xclass: 'Ext.app.ViewController',
callCallback: function(btn) {
let view = this.getView();
if (Ext.isFunction(view.callback)) {
view.callback(btn.action);
}
},
},
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',
},
],
});