FetchmailView.js - add remove button

This commit is contained in:
Dietmar Maurer 2017-10-23 09:26:09 +02:00
parent 78ec45ebbd
commit a989cf6204

View File

@ -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',