diff --git a/js/FetchmailView.js b/js/FetchmailView.js index d4c79da..30c157f 100644 --- a/js/FetchmailView.js +++ b/js/FetchmailView.js @@ -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',