Compare commits
2 Commits
ccf77805a0
...
9e3f6010c3
Author | SHA1 | Date | |
---|---|---|---|
9e3f6010c3 | |||
e6a637b866 |
@ -115,18 +115,11 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||
return action;
|
||||
}
|
||||
|
||||
async loadItemTypes() {
|
||||
await this.itemTypeService$.load(this.appConfig$)
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.InstallRouteEventHandler();
|
||||
this.InstallEventServiceEventHandler();
|
||||
this.InstallAuthenticationEventHandler();
|
||||
this.InstallHealthCheck();
|
||||
|
||||
//load item types
|
||||
this.loadItemTypes();
|
||||
}
|
||||
|
||||
@HostListener('document:keyup', ['$event'])
|
||||
|
@ -12,6 +12,7 @@ export function appConfigFactory(injector:Injector, appConfig: AppConfig, oauthS
|
||||
return (): Promise<any> => {
|
||||
return new Promise<void>((resolve,reject) => {
|
||||
appConfig.load().then(() => {
|
||||
itemtypeService.load(appConfig);
|
||||
oauthService.configure(authconfigFactory.getAuthConfig(appConfig));
|
||||
oauthService.setStorage(authStorage);
|
||||
oauthService.setupAutomaticSilentRefresh();
|
||||
|
Loading…
Reference in New Issue
Block a user