Don't sync bulk actions for anonymous user
There is no point in getting additional change details for bulk actions
for an anonymous user as bulk actions componenets are not shown in this
mode anyway. When user logs in list of changes will be refreshed anyway
an then details for bulk actions will be loaded.
Bug: Issue 365254275
Release-Notes: Don't sync bulk actions details for anonymous user.
Change-Id: I9b09991289a5ea555252c9f54a320c993e66e2e1
diff --git a/polygerrit-ui/app/elements/change-list/gr-change-list-section/gr-change-list-section.ts b/polygerrit-ui/app/elements/change-list/gr-change-list-section/gr-change-list-section.ts
index 91770ca..0799e03 100644
--- a/polygerrit-ui/app/elements/change-list/gr-change-list-section/gr-change-list-section.ts
+++ b/polygerrit-ui/app/elements/change-list/gr-change-list-section/gr-change-list-section.ts
@@ -172,7 +172,7 @@
}
override willUpdate(changedProperties: PropertyValues) {
- if (changedProperties.has('changeSection')) {
+ if (changedProperties.has('changeSection') && this.isLoggedIn) {
// In case the list of changes is updated due to auto reloading, we want
// to ensure the model removes any stale change that is not a part of the
// new section changes.