mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-15 00:42:32 +00:00
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:
parent
8df4bd63d7
commit
d17aa32eb4
@ -37,7 +37,7 @@ Ext.define('Proxmox.window.TaskProgress', {
|
|||||||
return defaultValue;
|
return defaultValue;
|
||||||
};
|
};
|
||||||
|
|
||||||
let pbar = Ext.create('Ext.ProgressBar', { text: 'running...' });
|
let pbar = Ext.create('Ext.ProgressBar');
|
||||||
|
|
||||||
me.mon(statstore, 'load', function() {
|
me.mon(statstore, 'load', function() {
|
||||||
let status = getObjectValue('status');
|
let status = getObjectValue('status');
|
||||||
@ -79,7 +79,7 @@ Ext.define('Proxmox.window.TaskProgress', {
|
|||||||
|
|
||||||
statstore.startUpdate();
|
statstore.startUpdate();
|
||||||
|
|
||||||
pbar.wait();
|
pbar.wait({ text: gettext('running...') });
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user