Projekt

Obecné

Profil

« Předchozí | Další » 

Revize f8b40fd5

Přidáno uživatelem Hung Hoang před téměř 6 roky(ů)

Re#7494 Implemented edit user settings

Zobrazit rozdíly:

webapp/src/app/services/profile.service.ts
12 12
  constructor(
13 13
    private userService: UserService
14 14
  ) {
15
    // userService.getEmployeeProfile(1)
15
    // userService.getUserProfile(1)
16 16
    //   .subscribe((data: UserProfile) => this.profile = data);
17 17
  }
18 18

  
......
22 22
        observer.next(this.profile);
23 23
        observer.complete();
24 24
      } else {
25
        this.userService.getEmployeeProfile(1) // TODO zmenit id na prihlaseneho uzivatele
25
        this.userService.getUserProfile(1) // TODO zmenit id na prihlaseneho uzivatele
26 26
          .subscribe((data: UserProfile) => {
27 27
            this.profile = data;
28 28
            observer.next(this.profile);

Také k dispozici: Unified diff