mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
fixed lint/lgtm issues
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { ProfilePageComponent } from './profile-page.component';
|
||||
import { ComponentFixture, fakeAsync, TestBed, tick, waitForAsync } from '@angular/core/testing';
|
||||
import { ComponentFixture, fakeAsync, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { VarDirective } from '../shared/utils/var.directive';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
@@ -31,7 +31,7 @@ describe('ProfilePageComponent', () => {
|
||||
let epersonService;
|
||||
let notificationsService;
|
||||
|
||||
let canChangePassword = new BehaviorSubject(true);
|
||||
const canChangePassword = new BehaviorSubject(true);
|
||||
|
||||
function init() {
|
||||
user = Object.assign(new EPerson(), {
|
||||
|
@@ -87,7 +87,7 @@ export class ProfilePageComponent implements OnInit {
|
||||
tap((user: EPerson) => this.currentUser = user)
|
||||
);
|
||||
this.groupsRD$ = this.user$.pipe(switchMap((user: EPerson) => user.groups));
|
||||
this.canChangePassword$ = this.user$.pipe(switchMap((user:EPerson) => this.authorizationService.isAuthorized(FeatureID.CanChangePassword, user._links.self.href)));
|
||||
this.canChangePassword$ = this.user$.pipe(switchMap((user: EPerson) => this.authorizationService.isAuthorized(FeatureID.CanChangePassword, user._links.self.href)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user