diff options
author | Paladox none <thomasmulhall410@yahoo.com> | 2021-08-05 22:45:21 +0000 |
---|---|---|
committer | Paladox none <thomasmulhall410@yahoo.com> | 2021-08-06 05:20:02 +0000 |
commit | e445dbdc32781608a364e22622304253a2ad1c17 (patch) | |
tree | a86c5334ff56f294af91604e2182ffe6f911e640 | |
parent | 503f3a8082afb2094c1a0feab1160edaafa502f9 (diff) |
Disable setting cancelLeftPadding if avatars are not set in the config
Some gerrit setups do not use avatars so setting cancelLeftPadding
was returning true causing issues with padding.
Bug: Issue 14872
Change-Id: I53321da73dc35d2486d0ed01292d7757bb70ff80
(cherry picked from commit 114690e49123898cedc07512cd3389a9c65b9b9b)
-rw-r--r-- | polygerrit-ui/app/elements/shared/gr-account-label/gr-account-label.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/polygerrit-ui/app/elements/shared/gr-account-label/gr-account-label.ts b/polygerrit-ui/app/elements/shared/gr-account-label/gr-account-label.ts index be23cb31b4..5852135269 100644 --- a/polygerrit-ui/app/elements/shared/gr-account-label/gr-account-label.ts +++ b/polygerrit-ui/app/elements/shared/gr-account-label/gr-account-label.ts @@ -151,9 +151,11 @@ export class GrAccountLabel extends GestureEventListeners( change: ChangeInfo, force: boolean ) { + const hasAvatars = !!config?.plugin?.has_avatars; return ( !hideAvatar && - !this._hasAttention(config, highlight, account, change, force) + !this._hasAttention(config, highlight, account, change, force) && + hasAvatars ); } |