зеркало из https://github.com/mozilla/treeherder.git
Bug 1573162 - Patch to prevent UI from breaking in Perfherder (#5288)
If more tests are added than colors are provided, show the excess as grey
This commit is contained in:
Родитель
bb9fd9bb16
Коммит
0fb09c85b1
|
@ -634,7 +634,7 @@ perf.controller('GraphsCtrl', [
|
|||
series.flotSeries = {
|
||||
lines: { show: false },
|
||||
points: { show: series.visible },
|
||||
color: series.color[1],
|
||||
color: series.color ? series.color[1] : '#6c757d',
|
||||
label: series.projectName + ' ' + series.name,
|
||||
data: map(
|
||||
seriesData[series.signature],
|
||||
|
|
|
@ -39,7 +39,7 @@ export class TestContainer extends React.Component {
|
|||
</span>
|
||||
<div
|
||||
className={`${
|
||||
checked ? series.color[0] : 'border-secondary'
|
||||
checked && series.color ? series.color[0] : 'border-secondary'
|
||||
} graph-legend-card p-3`}
|
||||
>
|
||||
<p
|
||||
|
|
Загрузка…
Ссылка в новой задаче