feat: add import to excel

Made at the request of the customer
This commit is contained in:
2024-10-27 08:29:30 +03:00
parent 7c66f31bac
commit 38b877608f
7 changed files with 141 additions and 35 deletions

View File

@ -23,7 +23,7 @@ export enum AvailableVersion {
@Injectable()
export default abstract class ApiService {
constructor(private http: HttpClient, private notify: ToastrService, private router: Router) {
constructor(protected http: HttpClient, protected notify: ToastrService, private router: Router) {
}
private apiUrl = environment.apiUrl;
@ -65,7 +65,7 @@ export default abstract class ApiService {
return this.http.request<Type>(method, doneEndpoint, {
withCredentials: request.withCredentials,
headers: request.httpHeaders,
body: request.data
body: request.data,
}).pipe(
catchError(error => {
if (!secondTry && error.status === 401)