Removed logs - fixed report download
This commit is contained in:
parent
bc68e99a49
commit
44af1d8c67
@ -68,7 +68,6 @@ export class SimpleDoughnutChartComponent implements OnChanges {
|
||||
newData.push(null);
|
||||
}
|
||||
});
|
||||
console.log(newData);
|
||||
this.chartData = newData;
|
||||
}
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ import { download } from '../utils/file-download-utils';
|
||||
import { humanize } from '../utils/functions';
|
||||
import { FileStatusWrapper } from '../screens/file/model/file-status.wrapper';
|
||||
import { ProjectWrapper } from './model/project.wrapper';
|
||||
|
||||
import { saveAs } from 'file-saver';
|
||||
export interface AppState {
|
||||
projects: ProjectWrapper[];
|
||||
activeProjectId: string;
|
||||
@ -237,8 +237,8 @@ export class AppStateService {
|
||||
if (!project) {
|
||||
project = this.activeProject.project;
|
||||
}
|
||||
this._fileManagementControllerService.downloadRedactionReportForProject(project.projectId, true, 'response').subscribe((data) => {
|
||||
download(data, 'redaction-report-' + project.projectName + '.docx');
|
||||
this._fileManagementControllerService.downloadRedactionReportForProject(project.projectId, true, 'body').subscribe((data) => {
|
||||
saveAs(data, 'redaction-report-' + project.projectName + '.docx');
|
||||
});
|
||||
}
|
||||
|
||||
@ -354,8 +354,8 @@ export class AppStateService {
|
||||
if (!file) {
|
||||
file = this.activeFile;
|
||||
}
|
||||
this._fileManagementControllerService.downloadRedactionReport({ fileIds: [file.fileId] }, true, 'response').subscribe((data) => {
|
||||
download(data, 'redaction-report-' + file.filename + '.docx');
|
||||
this._fileManagementControllerService.downloadRedactionReport({ fileIds: [file.fileId] }, true, 'body').subscribe((data) => {
|
||||
saveAs(data, 'redaction-report-' + file.filename + '.docx');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"OAUTH_URL": "https://redkc-staging.iqser.cloud/auth/realms/redaction",
|
||||
"OAUTH_CLIENT_ID": "redaction",
|
||||
"API_URL": "https://timo-redaction-dev.iqser.cloud"
|
||||
"API_URL": "https://redapi-staging.iqser.cloud"
|
||||
}
|
||||
|
||||
@ -420,7 +420,8 @@ export class FileManagementControllerService {
|
||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||
}
|
||||
|
||||
return this.httpClient.request<any>('post', `${this.basePath}/download/report`, {
|
||||
return this.httpClient.request('post', `${this.basePath}/download/report`, {
|
||||
responseType: 'blob',
|
||||
body: body,
|
||||
params: queryParameters,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
@ -474,7 +475,8 @@ export class FileManagementControllerService {
|
||||
// to determine the Content-Type header
|
||||
const consumes: string[] = [];
|
||||
|
||||
return this.httpClient.request<any>('get', `${this.basePath}/download/report/${encodeURIComponent(String(projectId))}`, {
|
||||
return this.httpClient.request('get', `${this.basePath}/download/report/${encodeURIComponent(String(projectId))}`, {
|
||||
responseType: 'blob',
|
||||
params: queryParameters,
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: headers,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user