From 54f7007cc54ca47cb8481607b7310e118a37c375 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Mon, 15 Feb 2021 12:18:20 +0100 Subject: [PATCH] ui: tape/ChangerStatus: use whole drives grid for masking on unload instead of just the tableview Signed-off-by: Dominik Csapak --- www/tape/ChangerStatus.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/www/tape/ChangerStatus.js b/www/tape/ChangerStatus.js index 3a9f4885..017759c7 100644 --- a/www/tape/ChangerStatus.js +++ b/www/tape/ChangerStatus.js @@ -134,18 +134,19 @@ Ext.define('PBS.TapeManagement.ChangerStatus', { unload: async function(view, rI, cI, button, el, record) { let me = this; let drive = record.data.name; - Proxmox.Utils.setErrorMask(view, true); + let driveGrid = me.lookup('drives'); + Proxmox.Utils.setErrorMask(driveGrid, true); try { await PBS.Async.api2({ method: 'PUT', timeout: 5*60*1000, url: `/api2/extjs/tape/drive/${encodeURIComponent(drive)}/unload`, }); - Proxmox.Utils.setErrorMask(view); + Proxmox.Utils.setErrorMask(driveGrid); me.reload(); } catch (error) { Ext.Msg.alert(gettext('Error'), error); - Proxmox.Utils.setErrorMask(view); + Proxmox.Utils.setErrorMask(driveGrid); me.reload(); } },