summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJukka Jokiniva <jukka.jokiniva@qt.io>2021-07-08 09:50:55 +0300
committerJukka Jokiniva <jukka.jokiniva@qt.io>2021-12-10 15:25:23 +0000
commitefbc7d08709788e613b9016f1fea10b856339f57 (patch)
tree4d484895157bf75472c41f1f910bb410dd31b3e9
parent3ef1bca28e5eccafa33c4d4c6905f0db9e57d3cc (diff)
Add label score extension points for plugin customizationv3.3.7-based
Change-Id: Ia2cfa4473b37dbbeab08e906a8aa7444c2e47d9c Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
-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)]]">