ui: tape restore: small code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-05-26 19:00:12 +02:00
parent ffba023c91
commit 9a535ec77b

View File

@ -160,17 +160,14 @@ Ext.define('PBS.TapeManagement.TapeRestoreWindow', {
Ext.Msg.alert(gettext('Error'), response.htmlStatus);
},
success: function(response, options) {
// stay around so we can trigger our close events
// when background action is completed
// keep around so we can trigger our close events when background action completes
view.hide();
Ext.create('Proxmox.window.TaskViewer', {
autoShow: true,
upid: response.result.data,
listeners: {
destroy: function() {
view.close();
},
destroy: () => view.close(),
},
});
},