mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-18 06:48:09 +00:00
Update notification-box.component.ts
This commit is contained in:
@ -38,7 +38,8 @@ export class NotificationBoxComponent implements OnInit, OnDestroy {
|
|||||||
) {}
|
) {}
|
||||||
|
|
||||||
ngOnInit() {
|
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;
|
this.themeService.getActualTheme() === 'light' ? this.isLightThemeEnabled = true : this.isLightThemeEnabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -79,6 +80,8 @@ export class NotificationBoxComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
showNotification() {
|
showNotification() {
|
||||||
|
localStorage.setItem('adbutler', 'true');
|
||||||
|
|
||||||
this.viewTimer = timer(0, 100);
|
this.viewTimer = timer(0, 100);
|
||||||
this.progress = 0;
|
this.progress = 0;
|
||||||
this.isVisible = true;
|
this.isVisible = true;
|
||||||
|
Reference in New Issue
Block a user