js: Don't add class `impact` to already finished targets

This commit is contained in:
Johannes Meyer 2020-06-08 10:49:02 +02:00
parent 62dd0b3f1e
commit 2a64a97302
1 changed files with 3 additions and 1 deletions

View File

@ -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();