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:
parent
24e84128e4
commit
4f688e09a4
|
@ -134,7 +134,6 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
|
||||||
submitText: gettext('OK'),
|
submitText: gettext('OK'),
|
||||||
title: gettext('Load Media into Drive'),
|
title: gettext('Load Media into Drive'),
|
||||||
url: `/api2/extjs/tape/drive`,
|
url: `/api2/extjs/tape/drive`,
|
||||||
showProgress: true,
|
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
submitUrl: function(url, values) {
|
submitUrl: function(url, values) {
|
||||||
let drive = values.drive;
|
let drive = values.drive;
|
||||||
|
@ -168,21 +167,15 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
|
||||||
let me = this;
|
let me = this;
|
||||||
let drive = record.data.name;
|
let drive = record.data.name;
|
||||||
try {
|
try {
|
||||||
let response = await PBS.Async.api2({
|
await PBS.Async.api2({
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
timeout: 5*60*1000,
|
timeout: 5*60*1000,
|
||||||
url: `/api2/extjs/tape/drive/${encodeURIComponent(drive)}/unload`,
|
url: `/api2/extjs/tape/drive/${encodeURIComponent(drive)}/unload`,
|
||||||
});
|
});
|
||||||
|
|
||||||
Ext.create('Proxmox.window.TaskProgress', {
|
|
||||||
autoShow: true,
|
|
||||||
upid: response.result.data,
|
|
||||||
taskDone: () => me.reload(),
|
|
||||||
});
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
Ext.Msg.alert(gettext('Error'), error);
|
Ext.Msg.alert(gettext('Error'), error);
|
||||||
me.reload();
|
|
||||||
}
|
}
|
||||||
|
me.reload();
|
||||||
},
|
},
|
||||||
|
|
||||||
driveCommand: function(driveid, command, callback, params, method) {
|
driveCommand: function(driveid, command, callback, params, method) {
|
||||||
|
|
Loading…
Reference in New Issue