lint fixes

This commit is contained in:
Joost
2022-12-20 15:50:31 +01:00
parent fd5da5e1a3
commit cbf6f24d87
2 changed files with 4 additions and 4 deletions

View File

@@ -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)),

View File

@@ -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)) :