TaskProgress: show text instead of percentage

The text needs to be defined in the wait() call as otherwise the
Ext.Progressbar will show a percentage that is not correct anyway but
just reflects where the animated progress bar itself is.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
This commit is contained in:
Aaron Lauterer 2022-07-22 14:15:24 +02:00 committed by Thomas Lamprecht
parent 8df4bd63d7
commit d17aa32eb4

View File

@ -37,7 +37,7 @@ Ext.define('Proxmox.window.TaskProgress', {
return defaultValue;
};
let pbar = Ext.create('Ext.ProgressBar', { text: 'running...' });
let pbar = Ext.create('Ext.ProgressBar');
me.mon(statstore, 'load', function() {
let status = getObjectValue('status');
@ -79,7 +79,7 @@ Ext.define('Proxmox.window.TaskProgress', {
statstore.startUpdate();
pbar.wait();
pbar.wait({ text: gettext('running...') });
},
});