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);
|
Ext.Msg.alert(gettext('Error'), response.htmlStatus);
|
||||||
},
|
},
|
||||||
success: function(response, options) {
|
success: function(response, options) {
|
||||||
// stay around so we can trigger our close events
|
// keep around so we can trigger our close events when background action completes
|
||||||
// when background action is completed
|
|
||||||
view.hide();
|
view.hide();
|
||||||
|
|
||||||
Ext.create('Proxmox.window.TaskViewer', {
|
Ext.create('Proxmox.window.TaskViewer', {
|
||||||
autoShow: true,
|
autoShow: true,
|
||||||
upid: response.result.data,
|
upid: response.result.data,
|
||||||
listeners: {
|
listeners: {
|
||||||
destroy: function() {
|
destroy: () => view.close(),
|
||||||
view.close();
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user