Commit b867921b by Torkel Ödegaard

annotation: cleanup

parent 0156a94a
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment