Merge branch 'dmp-refactoring' of https://code-repo.d4science.org/MaDgiK-CITE/argos into dmp-refactoring
This commit is contained in:
commit
bff183753b
|
@ -78,8 +78,8 @@ export class UserService {
|
|||
catchError((error: any) => throwError(error)));
|
||||
}
|
||||
|
||||
exportCSV(): Observable<HttpResponse<Blob>> {
|
||||
const url = `${this.apiBase}/export/csv`;
|
||||
exportCSV(hasTenantAdminMode: boolean): Observable<HttpResponse<Blob>> {
|
||||
const url = `${this.apiBase}/export/csv/${hasTenantAdminMode}`;
|
||||
let headerXml: HttpHeaders = this.headers.set('Content-Type', 'application/xml');
|
||||
const params = new BaseHttpParams();
|
||||
params.interceptorContext = {
|
||||
|
|
|
@ -216,7 +216,7 @@ export class UserListingComponent extends BaseListingComponent<User, UserLookup>
|
|||
//
|
||||
|
||||
export() { //TODO: send lookup to backend to export only filtered
|
||||
this.userService.exportCSV()
|
||||
this.userService.exportCSV(this.hasTenantAdminMode)
|
||||
.pipe(takeUntil(this._destroyed))
|
||||
.subscribe(response => {
|
||||
const blob = new Blob([response.body], { type: 'application/csv' });
|
||||
|
|
Loading…
Reference in New Issue