Sync offline data when we come back online
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Garrett Mills 2020-11-09 12:29:52 -06:00
parent 042494128a
commit 62a6f6532b
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -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();
} }
}); });