mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-21 03:54:58 +00:00
Update notification-box.component.ts
This commit is contained in:
parent
33c35308f9
commit
3f4bb0b172
@ -39,7 +39,9 @@ export class NotificationBoxComponent implements OnInit, OnDestroy {
|
||||
|
||||
ngOnInit() {
|
||||
let adbutler = localStorage.getItem('adbutler');
|
||||
if (!this.location.path().includes('nodes') && !(adbutler == 'true')) this.startTimer();
|
||||
var today = new Date().toISOString().substring(0, 10);
|
||||
|
||||
if (!this.location.path().includes('nodes') && !(adbutler == today)) this.startTimer();
|
||||
this.themeService.getActualTheme() === 'light' ? this.isLightThemeEnabled = true : this.isLightThemeEnabled = false;
|
||||
}
|
||||
|
||||
@ -80,7 +82,7 @@ export class NotificationBoxComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
showNotification() {
|
||||
localStorage.setItem('adbutler', 'true');
|
||||
localStorage.setItem('adbutler', new Date().toISOString().substring(0, 10));
|
||||
|
||||
this.viewTimer = timer(0, 100);
|
||||
this.progress = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user