Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 1d169f6d

Přidáno uživatelem Hung Hoang před téměř 6 roky(ů)

Re#7527 SnackBar opens if the error occurs

Zobrazit rozdíly:

webapp/src/app/services/api/file.service.ts
3 3
import {BasicService} from './basic.service';
4 4
import {catchError} from 'rxjs/operators';
5 5
import {Languages} from '../../enums/common.enum';
6
import {MatSnackBar} from '@angular/material';
6 7

  
7 8
@Injectable({
8 9
  providedIn: 'root'
9 10
})
10 11
export class FileService extends BasicService {
11 12

  
12
  constructor(protected http: HttpClient) {
13
    super(http);
13
  constructor(protected http: HttpClient, protected snackBar: MatSnackBar) {
14
    super(http, snackBar);
14 15
  }
15 16

  
16 17
  /**
......
75 76
    if (fileCount > 0) {
76 77

  
77 78
      formData.append('file', file.item(0));
78
      console.log('posilam data');
79 79
      return this.http.post(this.baseUrl + '/api/import/xls', formData, options);
80 80
    }
81 81
  }

Také k dispozici: Unified diff