From 9edee6c312515d301b46584fec42abe62da01abb Mon Sep 17 00:00:00 2001 From: Dmitrii Filippov Date: Tue, 9 Jul 2019 22:10:16 +0200 Subject: Fix timeout waiting for endpoint properties initialization gr-confirm-dialog contains gr-endpoint-decorator. gr-endpoint-param with the name action is bound to gr-confirm-dialog.action property. During the initialization, gr-endpoint-decorator waits while all properties are assigned. If a server returns revisionActions without submit property, then thr binding is not updated and gr-endpoint-decorator doesn't receive the notification when initialization is complete. Bug: Issue 11120 Change-Id: I529812c45edecf584897a4168fde28835feb316e --- .../gr-change-actions/gr-change-actions.html | 4 +- .../change/gr-change-actions/gr-change-actions.js | 36 +++++++++++++++++ .../gr-change-actions/gr-change-actions_test.html | 46 ++++++++++++++++++++++ 3 files changed, 84 insertions(+), 2 deletions(-) diff --git a/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.html b/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.html index e69d48f13f..1e50e4bfba 100644 --- a/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.html +++ b/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.html @@ -176,7 +176,7 @@ limitations under the License. on-cancel="_handleConfirmDialogCancel" branch="[[change.branch]]" has-parent="[[hasParent]]" - rebase-on-current="[[revisionActions.rebase.rebaseOnCurrent]]" + rebase-on-current="[[_revisionRebaseAction.rebaseOnCurrent]]" hidden>