Update notification-box.component.ts

This commit is contained in:
piotrpekala7 2020-04-10 11:06:00 +02:00
parent e7766ec708
commit 33c35308f9

View File

@ -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;