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 <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-02-23 09:06:33 +01:00 committed by Dietmar Maurer
parent 24e84128e4
commit 4f688e09a4

View File

@ -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) {