diff options
author | Paladox none <thomasmulhall410@yahoo.com> | 2024-03-25 13:55:14 +0000 |
---|---|---|
committer | Paladox none <thomasmulhall410@yahoo.com> | 2024-03-25 17:19:15 +0000 |
commit | fb3882808877369951358c53db75c323b549710d (patch) | |
tree | 55ff95221dd6c6c6219c01102ef8e3d65f17476e | |
parent | be8a5b73fbb740a7a6664c1b8b105920a5ceafd3 (diff) |
gr-change-view: use change-model to update change object
This is to ensure all aspects of the app are aware of the attention set
change but also make sure the current page is aware.
We don't use polymer and thus don't have an observer or compute on the object and so need to use the model.
Release-Notes: gr-change-view: use change-model to update change object
Change-Id: I1df2ad152a9fb46f44838d6b57d90964516215ab
(cherry picked from commit 46fa35cc69c3befaf8a6342fa4a537078fa380ff)
-rw-r--r-- | polygerrit-ui/app/elements/change/gr-change-view/gr-change-view.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polygerrit-ui/app/elements/change/gr-change-view/gr-change-view.ts b/polygerrit-ui/app/elements/change/gr-change-view/gr-change-view.ts index eb0b510ebb..47f17562d9 100644 --- a/polygerrit-ui/app/elements/change/gr-change-view/gr-change-view.ts +++ b/polygerrit-ui/app/elements/change/gr-change-view/gr-change-view.ts @@ -2042,7 +2042,7 @@ export class GrChangeView extends LitElement { fire(this, 'hide-alert', {}); }); } - this.change = newChange; + this.getChangeModel().updateStateChange(newChange); } // Private but used in tests. |