Revize 4ccb6b62
Přidáno uživatelem Pavel Fidransky před asi 5 roky(ů)
webapp/src/app/services/api/settings.service.ts | ||
---|---|---|
7 | 7 |
import {Languages} from '../../enums/common.enum'; |
8 | 8 |
import {MatSnackBar} from '@angular/material'; |
9 | 9 |
import {TranslateService} from '@ngx-translate/core'; |
10 |
import { Config } from '../util/config.service'; |
|
10 | 11 |
|
11 | 12 |
@Injectable({ |
12 | 13 |
providedIn: 'root' |
... | ... | |
14 | 15 |
export class SettingsService extends BasicService { |
15 | 16 |
defaultSettingsUrl = this.baseUrl + '/api/settings'; |
16 | 17 |
|
17 |
constructor(protected http: HttpClient, protected snackBar: MatSnackBar, protected translateService: TranslateService) { |
|
18 |
super(http, snackBar, translateService); |
|
18 |
constructor(protected config: Config, protected http: HttpClient, protected snackBar: MatSnackBar, protected translateService: TranslateService) {
|
|
19 |
super(config, http, snackBar, translateService);
|
|
19 | 20 |
} |
20 | 21 |
|
21 | 22 |
/** |
Také k dispozici: Unified diff
re #33: load frontend app configuration from config.json file