From 2a64a973023769b58fd281f770386af9f3e98b03 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 8 Jun 2020 10:49:02 +0200 Subject: [PATCH] js: Don't add class `impact` to already finished targets --- public/js/icinga/loader.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 78968fe5d..46e45f9d0 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -302,7 +302,9 @@ setTimeout(function () { // The column may have not been shown before. To make the transition // delay working we have to wait for the column getting rendered - req.$target.addClass('impact'); + if (req.state() === 'pending') { + req.$target.addClass('impact'); + } }, 0); } this.icinga.ui.refreshDebug();