summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaladox none <thomasmulhall410@yahoo.com>2023-04-21 17:20:07 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-04-21 17:20:07 +0000
commit189e34e1188b7aabb9243476c424809e64155589 (patch)
tree617c0053d29f8bca8b33ad349af70f9daebcc4d9
parentec02b73e7cfc59e14236172958f3314f76c5fac2 (diff)
parent757570d792674a949112d9ea5fa397ab9b4cd11a (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.ts12
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;
}