From b867921b3b533b847725463891d141278e89c49d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 12 Apr 2017 15:49:59 +0200 Subject: [PATCH] annotation: cleanup --- .../app/features/annotations/annotations_srv.ts | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/public/app/features/annotations/annotations_srv.ts b/public/app/features/annotations/annotations_srv.ts index 691153b197b..86c984b78dd 100644 --- a/public/app/features/annotations/annotations_srv.ts +++ b/public/app/features/annotations/annotations_srv.ts @@ -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) {