mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-13 21:59:08 +00:00

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>
33 lines
648 B
JavaScript
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',
|
|
},
|
|
],
|
|
});
|
|
|