Files
gerrit/polygerrit-ui/app/elements/diff/gr-patch-range-select
Becky Siegel 6c5aef3f3f Fix comments sometimes not showing up in patch set select
Previously, comments were not used as a parameter in the computed
function that calculated patch range values. Instead, it just used the
value of 'comments' when the patch dropdown was computed.

However, if comments were loaded after the dropdown values were
calculated, it was not updated to display the comment counts.

This change fixes the problem by using comments as a parameter in the
value calculations, and includes a default empty object in the case that
comments are not used as an input for the patch range selector
(currently the diff view).

Bug: Issue 7444
Change-Id: I2646800afc1632bf39b3c6a451c848669007ca18
(cherry picked from commit 3a90cd92c2)
2017-10-17 00:45:45 +00:00
..