Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 8ef49edd

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

  • ID 8ef49edd17cf16d2895c1f5979a430e479ce1f6c
  • Rodič 3fcf8b67

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