Skip to content

Commit

Permalink
Trailing spaces remove and space add
Browse files Browse the repository at this point in the history
  • Loading branch information
GauravD2t committed Dec 19, 2023
1 parent 262975b commit b9cc9e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/app/core/data/item-request-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,20 @@ export class ItemRequestDataService extends IdentifiableDataService<ItemRequest>
*/
requestACopy(itemRequest: ItemRequest, captchaToken: string = null): Observable<RemoteData<ItemRequest>> {
const requestId = this.requestService.generateRequestId();

const href$ = this.getItemRequestEndpoint();

const options: HttpOptions = Object.create({});
let headers = new HttpHeaders();
if (captchaToken) {
headers = headers.append('x-recaptcha-token', captchaToken);
}
options.headers = headers;

href$.pipe(
find((href: string) => hasValue(href)),
map((href: string) => {
const request = new PostRequest(requestId, href, itemRequest,options);
this.requestService.send(request);
})
).subscribe();

return this.rdbService.buildFromRequestUUID<ItemRequest>(requestId).pipe(
getFirstCompletedRemoteData()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class BitstreamRequestACopyPageComponent implements OnInit, OnDestroy {
*/
checkboxCheckedSubject$ = new BehaviorSubject<boolean>(false);
disableUntilChecked = true;
captchaToken:string;
captchaToken: string;
captchaVersion(): Observable<string> {
this.cdRef.detectChanges();
return this.googleRecaptchaService.captchaVersion();
Expand Down

0 comments on commit b9cc9e1

Please sign in to comment.