ui: tape/ChangerStatus: use whole drives grid for masking on unload
instead of just the tableview Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
b0338178d7
commit
54f7007cc5
|
@ -134,18 +134,19 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
|
||||||
unload: async function(view, rI, cI, button, el, record) {
|
unload: async function(view, rI, cI, button, el, record) {
|
||||||
let me = this;
|
let me = this;
|
||||||
let drive = record.data.name;
|
let drive = record.data.name;
|
||||||
Proxmox.Utils.setErrorMask(view, true);
|
let driveGrid = me.lookup('drives');
|
||||||
|
Proxmox.Utils.setErrorMask(driveGrid, true);
|
||||||
try {
|
try {
|
||||||
await PBS.Async.api2({
|
await PBS.Async.api2({
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
timeout: 5*60*1000,
|
timeout: 5*60*1000,
|
||||||
url: `/api2/extjs/tape/drive/${encodeURIComponent(drive)}/unload`,
|
url: `/api2/extjs/tape/drive/${encodeURIComponent(drive)}/unload`,
|
||||||
});
|
});
|
||||||
Proxmox.Utils.setErrorMask(view);
|
Proxmox.Utils.setErrorMask(driveGrid);
|
||||||
me.reload();
|
me.reload();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
Ext.Msg.alert(gettext('Error'), error);
|
Ext.Msg.alert(gettext('Error'), error);
|
||||||
Proxmox.Utils.setErrorMask(view);
|
Proxmox.Utils.setErrorMask(driveGrid);
|
||||||
me.reload();
|
me.reload();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue