Sync offline data when we come back online
This commit is contained in:
parent
042494128a
commit
62a6f6532b
@ -443,6 +443,7 @@ export class AppComponent implements OnInit {
|
|||||||
} else if ( !isOffline && this.showedOfflineAlert ) {
|
} else if ( !isOffline && this.showedOfflineAlert ) {
|
||||||
await toast.dismiss();
|
await toast.dismiss();
|
||||||
this.showedOfflineAlert = false;
|
this.showedOfflineAlert = false;
|
||||||
|
await this.api.syncOfflineData();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user