ui: use TaskProgress for clean drive

This commit is contained in:
Dietmar Maurer 2021-03-02 12:16:30 +01:00
parent d41114c5a8
commit 2970cd3d6d

View File

@ -194,9 +194,15 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
let me = this;
PBS.Utils.driveCommand(record.data.name, 'clean', {
waitMsgTarget: me.getView(),
callback: this.reload,
scope: this,
method: 'PUT',
success: function(response) {
Ext.create('Proxmox.window.TaskProgress', {
upid: response.result.data,
taskDone: function() {
me.reload();
},
}).show();
},
});
},