Fix for closing sdc splashscreen. 73/96273/2
authoraribeiro <anderson.ribeiro@est.tech>
Thu, 26 Sep 2019 10:43:21 +0000 (11:43 +0100)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Thu, 3 Oct 2019 13:54:26 +0000 (13:54 +0000)
After loading, the SDC splashscreen will now disappear after a total of 4 seconds.

Issue-ID: SDC-2258
Change-Id: I16629b2cf90f6cca0469ceb506128dabfc1ea3e1
Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
catalog-ui/src/app/view-models/welcome/welcome-view.ts

index a29a539..9e88cb6 100644 (file)
@@ -52,6 +52,9 @@ export class WelcomeViewModel {
         this.$scope.onCloseButtonClick = ():void => {
             this.$state.go("dashboard", {});
         };
+        window.setTimeout(():void => {
+            this.$state.go("dashboard", {});
+        },4000);
     };
 
     private init = ():void => {