Skip to content
Snippets Groups Projects

load principal in APP_INITIALIZE after authentication

Merged Jednotné přihlášení test requested to merge github/fork/xkureck/loadPrincipal into master

Created by: xkureck

  • load principal in APP_INITIALIZE after authentication resolves #36 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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');
  • Created by: DanoFecko

    If you want those 2 console.logs there, consider me approving

  • Vojtěch Sassmann approved this merge request

    approved this merge request

  • Merged by: Vojtech-Sassmann at 2019-11-13 16:04:25 UTC

  • Please register or sign in to reply
    Loading