|
|
@@ -134,20 +134,9 @@ export class AnnotationsSrv {
|
|
|
}
|
|
|
|
|
|
postAnnotation(annotations) {
|
|
|
- console.log("POST /api/annotations\n", annotations);
|
|
|
-
|
|
|
- // 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");
|
|
|
- }
|
|
|
+ return Promise.all(_.map(annotations, annotation => {
|
|
|
+ return this.backendSrv.post('/api/annotations', annotation);
|
|
|
+ }));
|
|
|
}
|
|
|
|
|
|
translateQueryResult(annotation, results) {
|