Torkel Ödegaard 8 лет назад
Родитель
Сommit
b867921b3b
1 измененных файлов с 3 добавлено и 14 удалено
  1. 3 14
      public/app/features/annotations/annotations_srv.ts

+ 3 - 14
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) {