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

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


The following commit(s) were added to refs/heads/DLAB-927 by this push:
     new 8bb2ada  [DLAB-1103]: added toastr on action processing
8bb2ada is described below

commit 8bb2adab728056082070012ebffdd78ed6022277
Author: Andriana Kovalyshyn <andriana_kovalys...@epam.com>
AuthorDate: Fri Sep 13 14:49:59 2019 +0300

    [DLAB-1103]: added toastr on action processing
---
 .../webapp/src/app/administration/project/project.component.ts      | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/services/self-service/src/main/resources/webapp/src/app/administration/project/project.component.ts
 
b/services/self-service/src/main/resources/webapp/src/app/administration/project/project.component.ts
index fde4615..851d7d4 100644
--- 
a/services/self-service/src/main/resources/webapp/src/app/administration/project/project.component.ts
+++ 
b/services/self-service/src/main/resources/webapp/src/app/administration/project/project.component.ts
@@ -112,8 +112,10 @@ export class ProjectComponent implements OnInit, OnDestroy 
{
   }
 
   private toggleStatusRequest(data, action) {
-    this.projectService.toggleProjectStatus(data, action).subscribe(() => 
this.refreshGrid(),
-      error => this.toastr.error(error.message, 'Oops!'));
+    this.projectService.toggleProjectStatus(data, action).subscribe(() => {
+      this.refreshGrid();
+      this.toastr.success(`Endpoint ${action} is in progress!`, 'Processing!');
+    }, error => this.toastr.error(error.message, 'Oops!'));
   }
 
   private getEnvironmentHealthStatus() {


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

Reply via email to