mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
lint fixes
This commit is contained in:
@@ -14,7 +14,7 @@ import { RemoteData } from './remote-data';
|
|||||||
import { RemoteDataBuildService } from '../cache/builders/remote-data-build.service';
|
import { RemoteDataBuildService } from '../cache/builders/remote-data-build.service';
|
||||||
import { HttpOptions } from '../dspace-rest/dspace-rest.service';
|
import { HttpOptions } from '../dspace-rest/dspace-rest.service';
|
||||||
import { HttpHeaders } from '@angular/common/http';
|
import { HttpHeaders } from '@angular/common/http';
|
||||||
import {HttpParams} from "@angular/common/http";
|
import {HttpParams} from '@angular/common/http';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
@@ -70,7 +70,7 @@ export class EpersonRegistrationService {
|
|||||||
headers = headers.append('x-recaptcha-token', captchaToken);
|
headers = headers.append('x-recaptcha-token', captchaToken);
|
||||||
}
|
}
|
||||||
options.headers = headers;
|
options.headers = headers;
|
||||||
options.params = type? new HttpParams({fromString:'type='+type}): new HttpParams();
|
options.params = type ? new HttpParams({fromString:'type=' + type}) : new HttpParams();
|
||||||
|
|
||||||
href$.pipe(
|
href$.pipe(
|
||||||
find((href: string) => hasValue(href)),
|
find((href: string) => hasValue(href)),
|
||||||
|
@@ -154,8 +154,8 @@ export class RegisterEmailFormComponent implements OnInit {
|
|||||||
*/
|
*/
|
||||||
registration(captchaToken = null) {
|
registration(captchaToken = null) {
|
||||||
let typeMap = new Map<string, string>([
|
let typeMap = new Map<string, string>([
|
||||||
["register-page.registration", "register"],
|
['register-page.registration', 'register'],
|
||||||
["forgot-email.form", "forgot"]
|
['forgot-email.form', 'forgot']
|
||||||
]);
|
]);
|
||||||
let registerEmail$ = captchaToken ?
|
let registerEmail$ = captchaToken ?
|
||||||
this.epersonRegistrationService.registerEmail(this.email.value, captchaToken, typeMap.get(this.MESSAGE_PREFIX)) :
|
this.epersonRegistrationService.registerEmail(this.email.value, captchaToken, typeMap.get(this.MESSAGE_PREFIX)) :
|
||||||
|
Reference in New Issue
Block a user