From 4f688e09a422348484cef61112933e0d7765e363 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 23 Feb 2021 09:06:33 +0100 Subject: [PATCH] ui: tape/ChangerStatus: do not show progressbar for (un)load since we already show the state of the drive in the grid, this is not necessary Signed-off-by: Dominik Csapak --- www/tape/ChangerStatus.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/www/tape/ChangerStatus.js b/www/tape/ChangerStatus.js index fcf4d6dd..8be600d8 100644 --- a/www/tape/ChangerStatus.js +++ b/www/tape/ChangerStatus.js @@ -134,7 +134,6 @@ Ext.define('PBS.TapeManagement.ChangerStatus', { submitText: gettext('OK'), title: gettext('Load Media into Drive'), url: `/api2/extjs/tape/drive`, - showProgress: true, method: 'POST', submitUrl: function(url, values) { let drive = values.drive; @@ -168,21 +167,15 @@ Ext.define('PBS.TapeManagement.ChangerStatus', { let me = this; let drive = record.data.name; try { - let response = await PBS.Async.api2({ + await PBS.Async.api2({ method: 'POST', timeout: 5*60*1000, url: `/api2/extjs/tape/drive/${encodeURIComponent(drive)}/unload`, }); - - Ext.create('Proxmox.window.TaskProgress', { - autoShow: true, - upid: response.result.data, - taskDone: () => me.reload(), - }); } catch (error) { Ext.Msg.alert(gettext('Error'), error); - me.reload(); } + me.reload(); }, driveCommand: function(driveid, command, callback, params, method) {