Revize 5d32cbea
Přidáno uživatelem Václav Jirák před téměř 6 roky(ů)
webapp/src/app/services/api/file.service.ts | ||
---|---|---|
4 | 4 |
import {catchError} from 'rxjs/operators'; |
5 | 5 |
import {Languages} from '../../enums/common.enum'; |
6 | 6 |
import {MatSnackBar} from '@angular/material'; |
7 |
import {TranslateService} from '@ngx-translate/core'; |
|
7 | 8 |
|
8 | 9 |
@Injectable({ |
9 | 10 |
providedIn: 'root' |
10 | 11 |
}) |
11 | 12 |
export class FileService extends BasicService { |
12 | 13 |
|
13 |
constructor(protected http: HttpClient, protected snackBar: MatSnackBar) { |
|
14 |
super(http, snackBar); |
|
14 |
constructor(protected http: HttpClient, protected snackBar: MatSnackBar, protected translateService: TranslateService) {
|
|
15 |
super(http, snackBar, translateService);
|
|
15 | 16 |
} |
16 | 17 |
|
17 | 18 |
/** |
Také k dispozici: Unified diff
Error and information messages modified - correct error messages from backend are displayed and information messages are translated