From 2970cd3d6d3b8096600ea8a7cc6d5c4fca921e3e Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 2 Mar 2021 12:16:30 +0100 Subject: [PATCH] ui: use TaskProgress for clean drive --- www/tape/ChangerStatus.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/www/tape/ChangerStatus.js b/www/tape/ChangerStatus.js index 2f9c41f8..2a1931e4 100644 --- a/www/tape/ChangerStatus.js +++ b/www/tape/ChangerStatus.js @@ -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(); + }, }); },