[pbs-devel] [PATCH proxmox-backup 2/2] ui: tape/ChangerStatus: use whole drives grid for masking on unload
Dominik Csapak
d.csapak at proxmox.com
Mon Feb 15 12:18:20 CET 2021
instead of just the tableview
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
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();
}
},
--
2.20.1
More information about the pbs-devel
mailing list