mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-14 18:07:54 +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.on('destroy', function() { view.store.load(); });
|
||||||
win.show();
|
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: {
|
listeners: {
|
||||||
//scope: 'controller',
|
//scope: 'controller',
|
||||||
itemdblclick: 'onEdit',
|
itemdblclick: 'onEdit',
|
||||||
|
Loading…
Reference in New Issue
Block a user