fixed lint/lgtm issues

This commit is contained in:
lotte
2021-12-15 15:13:27 +01:00
parent 2f022f505d
commit 6594a3877f
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -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)));
}
/**