Complete hide logic for Zuul CI comments in Gerrit

Apply the exclusion for trusted CI comments to the hide function's
conditional case as well as the toggle function's.

Change-Id: Ia4e5ec22a097a8b8cb564c237fd0aa48ab6f8724
This commit is contained in:
Jeremy Stanley 2019-07-16 00:32:26 +00:00
parent 0964733556
commit 5a30d26f44

View File

@ -367,7 +367,7 @@ var ci_hide_ci_comments = function(comments) {
comments = ci_parse_comments();
}
$.each(comments, function(i, comment) {
if (comment.is_ci) {
if (comment.is_ci && !comment.is_trusted_ci) {
$(comment.ref).hide();
}
});