SUPPORT-9225: check from console
This commit is contained in:
parent
305ee2378e
commit
ba1f84a38d
1 changed files with 5 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ import {
|
|||
TextField,
|
||||
Visible
|
||||
} from "@webbpm/base-package";
|
||||
import {HttpClient} from "@angular/common/http";
|
||||
import {HttpClient, HttpErrorResponse, HttpResponse} from "@angular/common/http";
|
||||
import {FormField} from "../field/FormField";
|
||||
import {AuthorizationService} from "../../../modules/app/service/authorization.service";
|
||||
import {ApplicationKind} from "../enum/ApplicationKind";
|
||||
|
|
@ -192,9 +192,12 @@ export class UserManagementService extends Behavior {
|
|||
private doBlockingRequest(ids: string[], appNumber: number, block: boolean): void {
|
||||
const url = window.location.origin + UserManagementService.USER_BLOCK_PATH;
|
||||
let method = block ? 'delete' : 'post';
|
||||
this.httpClient.request(method, url, { body: ids }).toPromise()
|
||||
this.httpClient.request(method, url, { body: ids, observe: 'response' }).toPromise()
|
||||
.then((response: any) => {
|
||||
console.log(response);
|
||||
console.log("HttpResponse", response instanceof HttpResponse);
|
||||
console.log("HttpErrorResponse", response instanceof HttpErrorResponse);
|
||||
console.log(response.headers);
|
||||
let status = response.ok ? ApplicationStatus.ACCEPTED : ApplicationStatus.AGREED;
|
||||
this.saveStatus(status, appNumber);
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue