mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
annotation: cleanup
This commit is contained in:
parent
0156a94a49
commit
b867921b3b
@ -134,20 +134,9 @@ export class AnnotationsSrv {
|
|||||||
}
|
}
|
||||||
|
|
||||||
postAnnotation(annotations) {
|
postAnnotation(annotations) {
|
||||||
console.log("POST /api/annotations\n", annotations);
|
return Promise.all(_.map(annotations, annotation => {
|
||||||
|
return this.backendSrv.post('/api/annotations', annotation);
|
||||||
// Not implemented yet
|
}));
|
||||||
let implemented = true;
|
|
||||||
if (implemented) {
|
|
||||||
return Promise.all(_.map(annotations, annotation => {
|
|
||||||
return this.backendSrv.post('/api/annotations', annotation);
|
|
||||||
}))
|
|
||||||
.catch(error => {
|
|
||||||
console.log(error);
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
return Promise.resolve("Not implemented");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
translateQueryResult(annotation, results) {
|
translateQueryResult(annotation, results) {
|
||||||
|
Loading…
Reference in New Issue
Block a user