diff options
Diffstat (limited to 'catalog-ui/src/app/view-models/welcome/welcome-view.ts')
-rw-r--r-- | catalog-ui/src/app/view-models/welcome/welcome-view.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/catalog-ui/src/app/view-models/welcome/welcome-view.ts b/catalog-ui/src/app/view-models/welcome/welcome-view.ts index 9e88cb66f7..5ed7159d79 100644 --- a/catalog-ui/src/app/view-models/welcome/welcome-view.ts +++ b/catalog-ui/src/app/view-models/welcome/welcome-view.ts @@ -49,12 +49,13 @@ export class WelcomeViewModel { } private initScope = ():void => { - this.$scope.onCloseButtonClick = ():void => { + let timeout = window.setTimeout(():void => { this.$state.go("dashboard", {}); - }; - window.setTimeout(():void => { + }, 4000); + this.$scope.onCloseButtonClick = ():void => { + window.clearTimeout(timeout); this.$state.go("dashboard", {}); - },4000); + } }; private init = ():void => { |