]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Fix loading dashboard page if job status is created but not yet running
authorMarcin Haba <marcin.haba@bacula.pl>
Mon, 12 Jul 2021 05:30:59 +0000 (07:30 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:25 +0000 (09:03 +0100)
gui/baculum/protected/Web/JavaScript/statistics.js

index b211691fa39f142894758ec8448173c434035b57..4e9ce7690d0c71ddbd78441d6c61cc487e8f5e47 100644 (file)
@@ -48,6 +48,9 @@ var Statistics = {
                                if (status_type == 'ok' && this.jobs[i].joberrors > 0) {
                                        status_type = 'warning';
                                }
+                               if (status_type == 'waiting') {
+                                       status_type = 'running';
+                               }
                                jobs_summary[status_type].push(this.jobs[i]);
                        }
                }