annotation: cleanup

This commit is contained in:
Torkel Ödegaard 2017-04-12 15:49:59 +02:00
parent 0156a94a49
commit b867921b3b

View File

@ -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) {