summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--polygerrit-ui/app/elements/change/gr-label-scores/gr-label-scores.ts4
-rw-r--r--polygerrit-ui/app/elements/change/gr-label-scores/gr-label-scores_html.ts2
2 files changed, 6 insertions, 0 deletions
diff --git a/polygerrit-ui/app/elements/change/gr-label-scores/gr-label-scores.ts b/polygerrit-ui/app/elements/change/gr-label-scores/gr-label-scores.ts
index d5281921f3..0b8bdce2b1 100644
--- a/polygerrit-ui/app/elements/change/gr-label-scores/gr-label-scores.ts
+++ b/polygerrit-ui/app/elements/change/gr-label-scores/gr-label-scores.ts
@@ -159,6 +159,10 @@ export class GrLabelScores extends GestureEventListeners(
return null;
}
+ _computeDecoratorName(preString: string, name: string) {
+ return preString + name.toLowerCase();
+ }
+
_computeLabels(
labelRecord: PolymerDeepPropertyChange<
LabelNameToInfoMap,
diff --git a/polygerrit-ui/app/elements/change/gr-label-scores/gr-label-scores_html.ts b/polygerrit-ui/app/elements/change/gr-label-scores/gr-label-scores_html.ts
index 7b1fb7fd58..108d2bb070 100644
--- a/polygerrit-ui/app/elements/change/gr-label-scores/gr-label-scores_html.ts
+++ b/polygerrit-ui/app/elements/change/gr-label-scores/gr-label-scores_html.ts
@@ -39,6 +39,7 @@ export const htmlTemplate = html`
</style>
<div class="scoresTable">
<template is="dom-repeat" items="[[_labels]]" as="label">
+ <gr-endpoint-decorator name$="[[_computeDecoratorName('review-label-scores-', label.name)]]">
<gr-label-score-row
class$="[[_computeLabelAccessClass(label.name, permittedLabels)]]"
label="[[label]]"
@@ -47,6 +48,7 @@ export const htmlTemplate = html`
permitted-labels="[[permittedLabels]]"
label-values="[[_labelValues]]"
></gr-label-score-row>
+ </gr-endpoint-decorator>
</template>
</div>
<div class="mergedMessage" hidden$="[[!_changeIsMerged(change.status)]]">