зеркало из https://github.com/mozilla/treeherder.git
Bug 1287679 - Make highlighting an alert work again (#1705)
This commit is contained in:
Родитель
282a66b8f0
Коммит
6ea832f5d1
|
@ -122,10 +122,13 @@ perf.controller('GraphsCtrl', [
|
|||
var alertSummary = _.find(phSeries.relatedAlertSummaries, function(alertSummary) {
|
||||
return alertSummary.result_set_id === dataPoint.resultSetId;
|
||||
});
|
||||
var alert = _.find(alertSummary.alerts,
|
||||
var alert;
|
||||
if (alertSummary) {
|
||||
alert = _.find(alertSummary.alerts,
|
||||
function(alert) {
|
||||
return alert.series_signature.signature_hash === phSeries.signature;
|
||||
});
|
||||
}
|
||||
$scope.tooltipContent = {
|
||||
project: _.findWhere($rootScope.repos,
|
||||
{ name: phSeries.projectName }),
|
||||
|
|
Загрузка…
Ссылка в новой задаче