You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by an...@apache.org on 2019/09/05 11:59:15 UTC

[incubator-dlab] 01/02: [DLAB-1043]: added error message during cluster creation in case of quota exceeding

This is an automated email from the ASF dual-hosted git repository.

ankovalyshyn pushed a commit to branch DLAB-1043
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit 741f216d73bd1fb46e74801536bdb622a3ccdd03
Author: Andriana Kovalyshyn <An...@epam.com>
AuthorDate: Thu Sep 5 14:51:53 2019 +0300

    [DLAB-1043]: added error message during cluster creation in case of quota exceeding
---
 .../computational-resource-create-dialog.component.ts                   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.ts b/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.ts
index 4749232..852d0a6 100644
--- a/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.ts
@@ -133,7 +133,7 @@ export class ComputationalResourceCreateDialogComponent implements OnInit {
     this.model.createComputationalResource(data, this.selectedImage, this.notebook_instance, this.spotInstance)
       .subscribe((response: any) => {
         if (response.status === HTTP_STATUS_CODES.OK) this.dialogRef.close();
-      });
+      }, error => this.toastr.error(error.message, 'Oops!'));
   }
 
   private initFormModel(): void {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org