load principal in APP_INITIALIZE after authentication
Created by: xkureck
- load principal in APP_INITIALIZE after authentication resolves #36 (closed)
Merge request reports
Activity
Filter activity
requested review from @9008807
assigned to @9008807
added DEPRECATE_waiting for review label
48 return new Promise((resolve, reject) => { 49 50 this.http.get('/assets/config/instanceConfig.json', { headers: this.getNoCacheHeaders() }) 51 .subscribe(config => { 52 if (environment.production) { 53 this.storeService.setInstanceConfig(config); 54 this.loadAdditionalData(config).then( () => { 55 resolve(); 56 }); 57 } 58 }, () => { 59 if (environment.production) { 60 console.error('Failed to load instance config.'); 61 reject(); 62 } else { 63 console.log('instance config not detected'); added DEPRECATE_requested changes label and removed DEPRECATE_waiting for review label
Please register or sign in to reply