diff --git a/src/app/components/notification-box/notification-box.component.ts b/src/app/components/notification-box/notification-box.component.ts index 823bf3cd..86648a3e 100644 --- a/src/app/components/notification-box/notification-box.component.ts +++ b/src/app/components/notification-box/notification-box.component.ts @@ -38,7 +38,8 @@ export class NotificationBoxComponent implements OnInit, OnDestroy { ) {} ngOnInit() { - if (!this.location.path().includes('nodes')) this.startTimer(); + let adbutler = localStorage.getItem('adbutler'); + if (!this.location.path().includes('nodes') && !(adbutler == 'true')) this.startTimer(); this.themeService.getActualTheme() === 'light' ? this.isLightThemeEnabled = true : this.isLightThemeEnabled = false; } @@ -79,6 +80,8 @@ export class NotificationBoxComponent implements OnInit, OnDestroy { } showNotification() { + localStorage.setItem('adbutler', 'true'); + this.viewTimer = timer(0, 100); this.progress = 0; this.isVisible = true;