Skip to content
Snippets Groups Projects
Commit 67597001 authored by Benaissa BENARBIA's avatar Benaissa BENARBIA Committed by Ro3034
Browse files

fix reviews

parent 594b8f86
No related branches found
No related tags found
No related merge requests found
import { Component, EventEmitter, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChanges } from '@angular/core';
import { Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Observable, Subscription } from 'rxjs';
import { Observable } from 'rxjs';
import { ArchiveService } from '../archive.service';
import { Unit } from '../models/unit.interface';
......@@ -9,7 +9,7 @@ import { Unit } from '../models/unit.interface';
templateUrl: './archive-preview.component.html',
styleUrls: ['./archive-preview.component.scss'],
})
export class ArchivePreviewComponent implements OnInit, OnChanges, OnDestroy {
export class ArchivePreviewComponent implements OnInit, OnChanges {
@Input()
archiveUnit: Unit;
@Input()
......@@ -19,7 +19,6 @@ export class ArchivePreviewComponent implements OnInit, OnChanges, OnDestroy {
@Input()
isPopup: boolean;
subscriptionDownloadProgress: Subscription;
tenantIdentifier: number;
uaPath$: Observable<{ fullPath: string; resumePath: string }>;
fullPath = false;
......@@ -55,9 +54,4 @@ export class ArchivePreviewComponent implements OnInit, OnChanges, OnDestroy {
showArchiveUniteFullPath() {
this.fullPath = true;
}
ngOnDestroy() {
// unsubscribe to ensure no memory leaks
this.subscriptionDownloadProgress.unsubscribe();
}
}
......@@ -89,11 +89,6 @@ export class ArchiveApiService extends BaseHttpClient<any> {
return `${this.apiUrl}/downloadobjectfromunit/${unitId}?tenantId=${tenantId}&contractId=${accessContractId}`;
}
downloadObjectFromUnit(id: string, headers?: HttpHeaders): string {
console.log(headers);
return `${this.apiUrl}/downloadobjectfromunit/${id}`;
}
findArchiveUnit(id: string, headers?: HttpHeaders): Observable<any> {
return this.http.get(`${this.apiUrl}/archiveunit/${id}`, { headers, responseType: 'text' });
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment