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
1 changed files with 8 additions and 2 deletions

View File

@ -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();
},
}); });
}, },