From 7416b235e4b0b202b010b4e8b847bdb609b13fe2 Mon Sep 17 00:00:00 2001 From: Becky Siegel Date: Thu, 27 Oct 2016 18:52:56 -0700 Subject: [PATCH] Sync patch set dropdowns on navigation Previously, on a changelist or file view, if you change the patchset to a lower number and then click the back button, dropdown value did not change properly. The issue was related to how the selected option was rendered in a dom-if. This change refactors the gr-select element to fit this use case. Bug: Issue 4800 Change-Id: I66ee5b7aba5421a01ca79f9e72a853a73c32e589 --- .../change/gr-change-view/gr-change-view.html | 23 ++++++++---- .../change/gr-change-view/gr-change-view.js | 16 +++++--- .../gr-change-view/gr-change-view_test.html | 22 +++++------ .../change/gr-file-list/gr-file-list.html | 24 ++++++++---- .../change/gr-file-list/gr-file-list.js | 14 ++++--- .../gr-file-list/gr-file-list_test.html | 2 +- .../gr-patch-range-select.html | 13 +++---- .../gr-patch-range-select.js | 37 +++++++++++++------ .../gr-patch-range-select_test.html | 4 ++ .../elements/shared/gr-select/gr-select.js | 33 +++++++---------- 10 files changed, 111 insertions(+), 77 deletions(-) diff --git a/polygerrit-ui/app/elements/change/gr-change-view/gr-change-view.html b/polygerrit-ui/app/elements/change/gr-change-view/gr-change-view.html index ecd26ad8c0..38c48c55f8 100644 --- a/polygerrit-ui/app/elements/change/gr-change-view/gr-change-view.html +++ b/polygerrit-ui/app/elements/change/gr-change-view/gr-change-view.html @@ -18,6 +18,7 @@ limitations under the License. + @@ -206,7 +207,7 @@ limitations under the License. } } -
Loading...
+
Loading...
@@ -231,7 +232,7 @@ limitations under the License.
-
+
+ patch-num="[[_computeLatestPatchNum(_allPatchSets)]]"> +
-
+
- -