From 113a5f81373aeef14a3dfe1f510c778e0205f4e7 Mon Sep 17 00:00:00 2001 From: Giuseppe Digilio Date: Fri, 29 Nov 2024 16:33:54 +0100 Subject: [PATCH] [DSC-2059] Fix lint --- .../export-item/export-item-menu.component.spec.ts | 5 +---- .../context-menu/export-item/export-item-menu.component.ts | 2 +- .../request-correction/request-correction-menu.component.ts | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/app/shared/context-menu/export-item/export-item-menu.component.spec.ts b/src/app/shared/context-menu/export-item/export-item-menu.component.spec.ts index 5c03ca1ea79..ee96580576e 100644 --- a/src/app/shared/context-menu/export-item/export-item-menu.component.spec.ts +++ b/src/app/shared/context-menu/export-item/export-item-menu.component.spec.ts @@ -11,10 +11,7 @@ import { TranslateModule, } from '@ngx-translate/core'; import { getTestScheduler } from 'jasmine-marbles'; -import { - of as observableOf, - of, -} from 'rxjs'; +import { of as observableOf } from 'rxjs'; import { TestScheduler } from 'rxjs/testing'; import { DSpaceObject } from '../../../core/shared/dspace-object.model'; diff --git a/src/app/shared/context-menu/export-item/export-item-menu.component.ts b/src/app/shared/context-menu/export-item/export-item-menu.component.ts index 55b01d184e2..8040d86df58 100644 --- a/src/app/shared/context-menu/export-item/export-item-menu.component.ts +++ b/src/app/shared/context-menu/export-item/export-item-menu.component.ts @@ -9,7 +9,7 @@ import { } from '@angular/core'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { TranslateModule } from '@ngx-translate/core'; -import { BehaviorSubject } from 'rxjs/internal/BehaviorSubject'; +import { BehaviorSubject } from 'rxjs'; import { take } from 'rxjs/operators'; import { ItemExportFormatMolteplicity } from '../../../core/itemexportformat/item-export-format.service'; diff --git a/src/app/shared/context-menu/request-correction/request-correction-menu.component.ts b/src/app/shared/context-menu/request-correction/request-correction-menu.component.ts index 2649e5fc03e..c0552cc6480 100644 --- a/src/app/shared/context-menu/request-correction/request-correction-menu.component.ts +++ b/src/app/shared/context-menu/request-correction/request-correction-menu.component.ts @@ -24,6 +24,7 @@ import { } from 'rxjs'; import { catchError, + switchMap, take, } from 'rxjs/operators'; @@ -41,7 +42,6 @@ import { import { NotificationsService } from '../../notifications/notifications.service'; import { ContextMenuEntryComponent } from '../context-menu-entry.component'; import { ContextMenuEntryType } from '../context-menu-entry-type'; -import { switchMap } from 'rxjs/internal/operators/switchMap'; /** * This component renders a context menu option that provides the request a correction functionality. @@ -136,7 +136,7 @@ export class RequestCorrectionMenuComponent extends ContextMenuEntryComponent im }); this.canCreateCorrection$ = this.notificationService.claimedProfile.pipe( - switchMap(() => this.canCreateCorrection(false)) + switchMap(() => this.canCreateCorrection(false)), ); }