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 { HttpOptions } from '../dspace-rest/dspace-rest.service';
|
||||
import { HttpHeaders } from '@angular/common/http';
|
||||
import {HttpParams} from "@angular/common/http";
|
||||
import {HttpParams} from '@angular/common/http';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
@@ -70,7 +70,7 @@ export class EpersonRegistrationService {
|
||||
headers = headers.append('x-recaptcha-token', captchaToken);
|
||||
}
|
||||
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(
|
||||
find((href: string) => hasValue(href)),
|
||||
|
@@ -154,8 +154,8 @@ export class RegisterEmailFormComponent implements OnInit {
|
||||
*/
|
||||
registration(captchaToken = null) {
|
||||
let typeMap = new Map<string, string>([
|
||||
["register-page.registration", "register"],
|
||||
["forgot-email.form", "forgot"]
|
||||
['register-page.registration', 'register'],
|
||||
['forgot-email.form', 'forgot']
|
||||
]);
|
||||
let registerEmail$ = captchaToken ?
|
||||
this.epersonRegistrationService.registerEmail(this.email.value, captchaToken, typeMap.get(this.MESSAGE_PREFIX)) :
|
||||
|
Reference in New Issue
Block a user