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

ytykhun pushed a commit to branch DATALAB-2440
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit 93de6c01a46306fb1ec0a70069e36f1df2f7f4cb
Author: Yurii Tykhun <[email protected]>
AuthorDate: Fri Jul 2 17:25:33 2021 +0300

    [DATALAB-2440] showed message about successfully self-service restarting
---
 .../app/administration/configuration/configuration.component.ts  | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git 
a/services/self-service/src/main/resources/webapp/src/app/administration/configuration/configuration.component.ts
 
b/services/self-service/src/main/resources/webapp/src/app/administration/configuration/configuration.component.ts
index 34f0eea..dc0601d 100644
--- 
a/services/self-service/src/main/resources/webapp/src/app/administration/configuration/configuration.component.ts
+++ 
b/services/self-service/src/main/resources/webapp/src/app/administration/configuration/configuration.component.ts
@@ -255,12 +255,17 @@ export class ConfigurationComponent implements OnInit, 
OnDestroy {
       .pipe(
         takeUntil(this.unsubscribe$),
       )
-      .subscribe(res => {
+      .subscribe(
+        res => {
           this.messagesStatus.success.push(serviceName);
           this.messagesStatus.counter -= 1;
         },
         error => {
-          this.messagesStatus.error.push(serviceName);
+          if (serviceName === 'Self-service') {
+            this.messagesStatus.success.push(serviceName);
+          } else {
+            this.messagesStatus.error.push(serviceName);
+          }
           this.messagesStatus.counter -= 1;
         }
       );

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to