Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 18dbad83

Přidáno uživatelem Václav Jirák před téměř 6 roky(ů)

Re #7475 Implemented basic localization with usage examples

Zobrazit rozdíly:

webapp/src/app/header/header.component.ts
3 3
import { ProfileSettingsComponent } from '../profile-settings/profile-settings.component';
4 4
import { ProfileService } from '../services/profile.service';
5 5
import { UserProfile } from '../models/user-profile.model';
6
import {LocalizationService} from "../localization/localization.service";
6 7

  
7 8
@Component({
8 9
  selector: 'app-header',
......
16 17

  
17 18
  constructor(
18 19
    private dialog: MatDialog,
19
    private profileService: ProfileService
20
    private profileService: ProfileService,
21
    private localizationService: LocalizationService
20 22
    ) {
21
    profileService.getProfile()
22
      .subscribe((data: UserProfile) => this.notificationSettings = new Date(data.settings.notification));
23
    // profileService.getProfile()
24
    //   .subscribe((data: UserProfile) => this.notificationSettings = new Date(data.settings.notification));
23 25
  }
24 26

  
25 27
  onProfileClick(): void {

Také k dispozici: Unified diff