mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-14 16:14:18 +00:00
FetchmailView.js - add remove button
This commit is contained in:
parent
78ec45ebbd
commit
a989cf6204
@ -46,9 +46,24 @@ Ext.define('PMG.FetchmailView', {
|
||||
});
|
||||
win.on('destroy', function() { view.store.load(); });
|
||||
win.show();
|
||||
},
|
||||
|
||||
onAfterRemove: function(btn, res) {
|
||||
var view = this.getView();
|
||||
view.store.load();
|
||||
}
|
||||
},
|
||||
|
||||
tbar: [
|
||||
{
|
||||
xtype: 'proxmoxStdRemoveButton',
|
||||
baseurl: '/config/fetchmail',
|
||||
reference: 'removeBtn',
|
||||
callback: 'onAfterRemove',
|
||||
waitMsgTarget: true
|
||||
},
|
||||
],
|
||||
|
||||
listeners: {
|
||||
//scope: 'controller',
|
||||
itemdblclick: 'onEdit',
|
||||
|
Loading…
Reference in New Issue
Block a user