mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
graph: initial Add Annotation flow #1286
This commit is contained in:
@@ -126,6 +126,18 @@ export class AnnotationsSrv {
|
||||
return this.globalAnnotationsPromise;
|
||||
}
|
||||
|
||||
postAnnotation(annotation) {
|
||||
console.log("POST /api/annotations\n", annotation);
|
||||
|
||||
// Not implemented yet
|
||||
let implemented = false;
|
||||
if (implemented) {
|
||||
return this.backendSrv.post('/api/annotations', annotation);
|
||||
} else {
|
||||
return Promise.resolve("Not implemented");
|
||||
}
|
||||
}
|
||||
|
||||
translateQueryResult(annotation, results) {
|
||||
for (var item of results) {
|
||||
item.source = annotation;
|
||||
|
||||
Reference in New Issue
Block a user