Merge branch 'master' into 16848-token-handling-improvements
[arvados-workbench2.git] / src / services / common-service / common-service.ts
index 54c0edf6bf2c684346e0309103ad085c4f38a541..e43f9f8f136a7404af40b9ffb0626cffd650d9ad 100644 (file)
@@ -94,11 +94,13 @@ export class CommonService<T> {
             });
     }
 
-    create(data?: Partial<T>) {
+    create(data?: Partial<T>, showErrors?: boolean) {
         return CommonService.defaultResponse(
             this.serverApi
                 .post<T>(this.resourceType, data && CommonService.mapKeys(_.snakeCase)(data)),
-            this.actions
+            this.actions,
+            true, // mapKeys
+            showErrors
         );
     }