treat label as override in static badge (#2116)

closes #2112
This commit is contained in:
chris48s
2018-10-06 15:09:59 +01:00
committed by GitHub
parent 1d18e1048f
commit 819202bcf3
2 changed files with 9 additions and 1 deletions

View File

@@ -259,7 +259,7 @@ camp.route(
// Badge creation.
try {
const badgeData = getBadgeData(subject, data)
badgeData.text[0] = getLabel(subject, data)
badgeData.text[0] = getLabel(undefined, { label: subject })
badgeData.text[1] = status
badgeData.colorB = makeColorB(color, data)
badgeData.template = data.style