mirror of
https://github.com/samnyan/aqua-viewer.git
synced 2026-03-21 17:24:53 -05:00
[general] Only load database after login.
This commit is contained in:
parent
bc60ca3ed5
commit
a718036ab6
|
|
@ -157,7 +157,9 @@ export class AppComponent implements OnInit, OnChanges, OnDestroy {
|
|||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
if (this.user !== null) {
|
||||
this.preLoad.load();
|
||||
}
|
||||
this.subscription = this.api.loadingState.subscribe(
|
||||
state => this.loading = state.show
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user