Revize 5d32cbea
Přidáno uživatelem Václav Jirák před téměř 6 roky(ů)
webapp/src/app/services/api/users.service.ts | ||
---|---|---|
8 | 8 |
import {Observable} from 'rxjs'; |
9 | 9 |
import {UserBasicInformation} from '../../models/user.model'; |
10 | 10 |
import {MatSnackBar} from '@angular/material'; |
11 |
import {TranslateService} from '@ngx-translate/core'; |
|
11 | 12 |
|
12 | 13 |
@Injectable({ |
13 | 14 |
providedIn: 'root' |
... | ... | |
15 | 16 |
export class UsersService extends BasicService { |
16 | 17 |
private _usersUrl = this.baseUrl + '/api/users'; |
17 | 18 |
|
18 |
constructor(protected http: HttpClient, protected snackBar: MatSnackBar) { |
|
19 |
super(http, snackBar); |
|
19 |
constructor(protected http: HttpClient, protected snackBar: MatSnackBar, protected translateService: TranslateService) {
|
|
20 |
super(http, snackBar, translateService);
|
|
20 | 21 |
} |
21 | 22 |
|
22 | 23 |
/** |
Také k dispozici: Unified diff
Error and information messages modified - correct error messages from backend are displayed and information messages are translated