mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Big refactoring/rewrite for how annotation tooltips are shown, also work on #1474
This commit is contained in:
@@ -111,11 +111,19 @@ function (angular, _, $, config, kbn, moment) {
|
||||
var list = [];
|
||||
for (var i = 0; i < results.data.length; i++) {
|
||||
var e = results.data[i];
|
||||
var tags = [];
|
||||
if (e.tags) {
|
||||
tags = e.tags.split(',');
|
||||
if (tags.length === 1) {
|
||||
tags = e.tags.split(' ');
|
||||
}
|
||||
}
|
||||
|
||||
list.push({
|
||||
annotation: annotation,
|
||||
time: e.when * 1000,
|
||||
title: e.what,
|
||||
tags: e.tags,
|
||||
tags: tags,
|
||||
text: e.data
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user