| commit | 24caf0a4a8483bda1e974ecf347abd3e23668081 | [log] [tgz] |
|---|---|---|
| author | Wyatt Allen <wyatta@google.com> | Fri Mar 02 16:16:54 2018 -0800 |
| committer | Wyatt Allen <wyatta@google.com> | Fri Mar 02 17:12:20 2018 -0800 |
| tree | a96e52944c9c1218d4007bd979142901a923418f | |
| parent | e3d595d73aa7dfc2121f39601467e490301c0a63 [diff] [blame] |
Handle unauthenticated users in when computing change list highlight In I93e61f4c98, the `_computeItemHighlight` method was changed in a way that didn't account for unauthenticated users. Update the method to handle this scenario and add a test. The dashboard view is updated to set null accounts more consistently with the change list view. Change-Id: Id33808505ffb6c3f722a963d8e27dd8dba112dec
diff --git a/polygerrit-ui/app/elements/change-list/gr-dashboard-view/gr-dashboard-view.js b/polygerrit-ui/app/elements/change-list/gr-dashboard-view/gr-dashboard-view.js index 7c04c1f..cce291b 100644 --- a/polygerrit-ui/app/elements/change-list/gr-dashboard-view/gr-dashboard-view.js +++ b/polygerrit-ui/app/elements/change-list/gr-dashboard-view/gr-dashboard-view.js
@@ -72,7 +72,7 @@ properties: { account: { type: Object, - value() { return {}; }, + value: null, }, /** @type {{ selectedChangeIndex: number }} */ viewState: Object,