]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
TaskProgress: show text instead of percentage
authorAaron Lauterer <a.lauterer@proxmox.com>
Fri, 22 Jul 2022 12:15:24 +0000 (14:15 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 Nov 2022 13:57:16 +0000 (14:57 +0100)
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>
src/window/TaskViewer.js

index 9293d951d32282e1a6b693356b6c3034180413b2..5d8bb84bad87ca5b315f8c539b89924a41c2862c 100644 (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...') });
     },
 });