diff options
-rw-r--r-- | polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row.ts | 4 | ||||
-rw-r--r-- | polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row_html.ts | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row.ts b/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row.ts index 9a38095cac..dea06ee683 100644 --- a/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row.ts +++ b/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row.ts @@ -282,4 +282,8 @@ export class GrLabelScoreRow extends PolymerElement { (labels[label] as DetailedLabelInfo).values![value] ); } + + _computeDecoratorName(preString: string, name: string) { + return preString + name.toLowerCase(); + } } diff --git a/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row_html.ts b/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row_html.ts index e57a2163f1..fbfb478cb2 100644 --- a/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row_html.ts +++ b/polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row_html.ts @@ -99,6 +99,7 @@ export const htmlTemplate = html` } } </style> + <gr-endpoint-decorator name$="[[_computeDecoratorName('review-label-scores-', label.name)]]"> <span class="labelNameCell" id="labelName" aria-hidden="true" >[[label.name]]</span > @@ -157,4 +158,5 @@ export const htmlTemplate = html` > <span id="selectedValueLabel">[[_selectedValueText]]</span> </div> + </gr-endpoint-decorator> `; |