Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 4ccb6b62

Přidáno uživatelem Pavel Fidransky před asi 5 roky(ů)

re #33: load frontend app configuration from config.json file

Zobrazit rozdíly:

webapp/src/app/services/api/user.service.ts
11 11
import {DateFormatterService} from '../util/date-formatter.service';
12 12
import {TranslateService} from '@ngx-translate/core';
13 13
import {ProfileService} from "../util/profile.service";
14
import { Config } from '../util/config.service';
14 15

  
15 16
@Injectable({
16 17
  providedIn: 'root'
......
18 19
export class UserService extends BasicService { // dost podobny k usersService, mozna zmenit v rest api
19 20
  private _userUrl = this.baseUrl + '/api/user/';
20 21

  
21
  constructor(protected http: HttpClient, protected snackBar: MatSnackBar, protected translateService: TranslateService, protected profileService: ProfileService, private dateFormater: DateFormatterService) {
22
    super(http, snackBar, translateService);
22
  constructor(protected config: Config, protected http: HttpClient, protected snackBar: MatSnackBar, protected translateService: TranslateService, protected profileService: ProfileService, private dateFormater: DateFormatterService) {
23
    super(config, http, snackBar, translateService);
23 24
  }
24 25

  
25 26
  /**

Také k dispozici: Unified diff