diff --git a/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row.html b/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row.html
index 8324ab2d48..819b6d94c0 100644
--- a/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row.html
+++ b/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row.html
@@ -116,7 +116,9 @@ limitations under the License.
as="value">
[[value]]
diff --git a/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row.js b/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row.js
index cf743a45b3..59f9f4617f 100644
--- a/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row.js
+++ b/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row.js
@@ -125,7 +125,10 @@
this._selectedValueText = e.target.selectedItem.getAttribute('title');
// Needed to update the style of the selected button.
this.updateStyles();
- this.fire('labels-changed');
+ const name = e.target.selectedItem.name;
+ const value = e.target.selectedItem.getAttribute('value');
+ this.dispatchEvent(new CustomEvent(
+ 'labels-changed', {detail: {name, value}, bubbles: true}));
},
_computeAnyPermittedLabelValues(permittedLabels, label) {
diff --git a/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row_test.html b/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row_test.html
index 1acf6ad773..49d0b67846 100644
--- a/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row_test.html
+++ b/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row_test.html
@@ -114,7 +114,9 @@ limitations under the License.
.textContent.trim(), '-1');
assert.strictEqual(
element.$.selectedValueLabel.textContent.trim(), 'bad');
- assert.isTrue(labelsChangedHandler.called);
+ const detail = labelsChangedHandler.args[0][0].detail;
+ assert.equal(detail.name, 'Verified');
+ assert.equal(detail.value, '-1');
});
test('_computeButtonClass', () => {
diff --git a/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.html b/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.html
index 6deb9a0fca..bcaf973893 100644
--- a/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.html
+++ b/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.html
@@ -113,6 +113,9 @@ limitations under the License.
display: flex;
width: 100%;
}
+ gr-endpoint-decorator[name="reply-label-scores"] {
+ display: block;
+ }
.previewContainer gr-formatted-text {
background: #f6f6f6;
padding: 1em;
@@ -138,6 +141,14 @@ limitations under the License.
#savingLabel.saving {
display: inline;
}
+ #pluginMessage {
+ color: #444;
+ margin-left: 1em;
+ margin-bottom: .5em;
+ }
+ #pluginMessage:empty {
+ display: none;
+ }
@@ -219,12 +230,15 @@ limitations under the License.
config="[[projectConfig.commentlinks]]">
-
+
+
+
+ [[_pluginMessage]]