Skip to content

Commit 48fc699

Browse files
committed
wip
1 parent a5e4fd0 commit 48fc699

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/app/core/components/app/app.component.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,29 @@ export class AppComponent implements OnInit, OnDestroy {
3838
}
3939

4040
networkStatus(): void {
41+
console.log('dfs');
42+
4143
this.onlineEvent = fromEvent(window, 'online');
4244
this.offlineEvent = fromEvent(window, 'offline');
4345

4446
this.subscriptions.push(
4547
this.onlineEvent.subscribe(() => {
48+
console.log("qqqq");
4649
this.connectionStatus = 'online';
4750
this.connectionStatusMessage = $localize`Vous êtes de nouveau en ligne.`;
4851
})
4952
);
5053

5154
this.subscriptions.push(
5255
this.offlineEvent.subscribe(() => {
56+
console.log("ffff");
57+
5358
this.connectionStatus = 'offline';
5459
this.connectionStatusMessage = $localize`Vous n'êtes pas connecté à l'Internet`;
5560
})
5661
);
62+
63+
console.log(this.connectionStatus);
5764
}
5865

5966
updateTheme(savedTheme: string | null = null): string {

src/app/core/components/network-status/network-status.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Component, Input, OnInit } from '@angular/core';
55
selector: 'network-status',
66
template: `
77
<div
8-
*ngIf="networkStatus"
8+
*ngIf="showNetworkStatus"
99
@showHideNotification
1010
aria-live="assertive"
1111
class="pointer-events-none fixed inset-0 flex items-end px-4 py-6 sm:p-6">
@@ -71,6 +71,6 @@ export class NetworkStatusComponent implements OnInit {
7171
ngOnInit() {
7272
setTimeout(() => {
7373
this.showNetworkStatus = false;
74-
}, 100);
74+
}, 3000);
7575
}
7676
}

0 commit comments

Comments
 (0)