mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-22 18:22:35 +00:00
Update notification-box.component.ts
This commit is contained in:
parent
e7766ec708
commit
33c35308f9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user