[general] Only load database after login.

This commit is contained in:
samnyan 2020-07-24 22:56:29 +09:00
parent bc60ca3ed5
commit a718036ab6

View File

@ -157,7 +157,9 @@ export class AppComponent implements OnInit, OnChanges, OnDestroy {
}
ngOnInit(): void {
this.preLoad.load();
if (this.user !== null) {
this.preLoad.load();
}
this.subscription = this.api.loadingState.subscribe(
state => this.loading = state.show
);