summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaladox none <thomasmulhall410@yahoo.com>2021-08-05 23:23:05 +0000
committerPaladox none <thomasmulhall410@yahoo.com>2022-04-28 14:43:15 +0000
commit5c808ff99ed8c701dad23cf4fbfc45217e05ee38 (patch)
tree4c59a4f227a84b40f2ffe929a7d45d680725aac3
parent4b36e83096e9c2bc3edf0f840bad72ed3b620180 (diff)
Fix bug in gr-avatar which wasn't hiding avatars when "hidden" is set
This happened for sites that did not set an avatar. Seems a recent regression as it works on gerrit 3.3. Release-Notes: skip Change-Id: I148716b36c3d57e3eb3f1486b9539f1741d7288b (cherry picked from commit e0358c2e4e7db76a7efe01de9cc14ef16af03a2e)
-rw-r--r--polygerrit-ui/app/elements/shared/gr-avatar/gr-avatar_html.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/polygerrit-ui/app/elements/shared/gr-avatar/gr-avatar_html.ts b/polygerrit-ui/app/elements/shared/gr-avatar/gr-avatar_html.ts
index a1e51df134..6abf10c362 100644
--- a/polygerrit-ui/app/elements/shared/gr-avatar/gr-avatar_html.ts
+++ b/polygerrit-ui/app/elements/shared/gr-avatar/gr-avatar_html.ts
@@ -18,6 +18,9 @@ import {html} from '@polymer/polymer/lib/utils/html-tag';
export const htmlTemplate = html`
<style>
+ :host([hidden]) {
+ display: none;
+ }
:host {
display: inline-block;
border-radius: 50%;