ui: use TaskProgress for clean drive
This commit is contained in:
parent
d41114c5a8
commit
2970cd3d6d
|
@ -194,9 +194,15 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
|
||||||
let me = this;
|
let me = this;
|
||||||
PBS.Utils.driveCommand(record.data.name, 'clean', {
|
PBS.Utils.driveCommand(record.data.name, 'clean', {
|
||||||
waitMsgTarget: me.getView(),
|
waitMsgTarget: me.getView(),
|
||||||
callback: this.reload,
|
|
||||||
scope: this,
|
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
|
success: function(response) {
|
||||||
|
Ext.create('Proxmox.window.TaskProgress', {
|
||||||
|
upid: response.result.data,
|
||||||
|
taskDone: function() {
|
||||||
|
me.reload();
|
||||||
|
},
|
||||||
|
}).show();
|
||||||
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue