From d17aa32eb48bfee80a1ac53c2124fd2a77bed1d1 Mon Sep 17 00:00:00 2001 From: Aaron Lauterer Date: Fri, 22 Jul 2022 14:15:24 +0200 Subject: [PATCH] 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 --- src/window/TaskViewer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window/TaskViewer.js b/src/window/TaskViewer.js index 9293d95..5d8bb84 100644 --- a/src/window/TaskViewer.js +++ b/src/window/TaskViewer.js @@ -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...') }); }, });