diff options
author | Paladox none <thomasmulhall410@yahoo.com> | 2023-04-21 17:20:07 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2023-04-21 17:20:07 +0000 |
commit | 189e34e1188b7aabb9243476c424809e64155589 (patch) | |
tree | 617c0053d29f8bca8b33ad349af70f9daebcc4d9 | |
parent | ec02b73e7cfc59e14236172958f3314f76c5fac2 (diff) | |
parent | 757570d792674a949112d9ea5fa397ab9b4cd11a (diff) |
Merge "gr-change-view: Call reload event with clear patchset set when editing commit msg" into stable-3.7
-rw-r--r-- | polygerrit-ui/app/elements/change/gr-change-view/gr-change-view.ts | 12 |
1 files changed, 2 insertions, 10 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 b201c6d3f0..6600c42546 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 @@ -36,11 +36,7 @@ import {ChangeStarToggleStarDetail} from '../../shared/gr-change-star/gr-change- import {flush} from '@polymer/polymer/lib/legacy/polymer.dom'; import {GrEditConstants} from '../../edit/gr-edit-constants'; import {pluralize} from '../../../utils/string-util'; -import { - querySelectorAll, - whenVisible, - windowLocationReload, -} from '../../../utils/dom-util'; +import {querySelectorAll, whenVisible} from '../../../utils/dom-util'; import {navigationToken} from '../../core/gr-navigation/gr-navigation'; import {getPluginEndpoints} from '../../shared/gr-js-api-interface/gr-plugin-endpoints'; import {getPluginLoader} from '../../shared/gr-js-api-interface/gr-plugin-loader'; @@ -1839,7 +1835,7 @@ export class GrChangeView extends LitElement { this.latestCommitMessage = this.prepareCommitMsgForLinkify(message); this.editingCommitMessage = false; - this.reloadWindow(); + fireReload(this, true); }) .catch(() => { assertIsDefined(this.commitMessageEditor); @@ -1847,10 +1843,6 @@ export class GrChangeView extends LitElement { }); } - private reloadWindow() { - windowLocationReload(); - } - private handleCommitMessageCancel() { this.editingCommitMessage = false; } |