From a66144a2c0a5b631233117b4eb2928f034c9c8d4 Mon Sep 17 00:00:00 2001 From: Vitor Capretz Date: Mon, 23 Sep 2019 17:52:12 +0200 Subject: [PATCH] job-progress: fix percentage value when gt 100 jobs might have progress reports with values that are bigger than 100 this at least prevents the progress bar to break and instead show only the number fixes #17 --- ui/components/Queue.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/components/Queue.js b/ui/components/Queue.js index 25e165a7c..a623a8e8f 100644 --- a/ui/components/Queue.js +++ b/ui/components/Queue.js @@ -166,6 +166,10 @@ const fieldComponents = { ) case 'Number': + if (job.progress > 100) { + return
{job.progress}
+ } + return (