ui: tape restore: small code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
ffba023c91
commit
9a535ec77b
@ -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(),
|
||||
},
|
||||
});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user