Project

General

Profile

« Previous | Next » 

Revision 58065

Initial commit for the new layout provided by the UX team

View differences:

topmenu-dashboard.component.ts
65 65
    return this.userLoggedIn;
66 66
  }
67 67

  
68
  parseUsername() {
69
    let firstLetters = "";
70
    let matches = this.getUserName().match(/\b(\w)/g);
71
    firstLetters += matches.join('');
72
    return firstLetters;
73
  }
74

  
68 75
  getIsUserAdmin() {
69 76
    this.isUserAdmin = (this.authService.getUserRole().includes('ROLE_ADMIN') ||
70 77
      this.authService.getUserRole().includes('ROLE_PROVIDE_ADMIN'));

Also available in: Unified diff