From 939f8648985c74c8d95f5f8e78776b6fb436799d Mon Sep 17 00:00:00 2001 From: Jens Vannerum Date: Mon, 16 Dec 2024 10:42:21 +0100 Subject: [PATCH] lint fixes --- .../browse-by/browse-by-date/browse-by-date.component.ts | 6 ++++-- .../browse-by-metadata/browse-by-metadata.component.ts | 5 ++++- .../browse-by/browse-by-title/browse-by-title.component.ts | 6 ++++-- src/app/menu-resolver.service.ts | 7 ++++--- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/app/browse-by/browse-by-date/browse-by-date.component.ts b/src/app/browse-by/browse-by-date/browse-by-date.component.ts index 5f825add8ca..11818ff5f15 100644 --- a/src/app/browse-by/browse-by-date/browse-by-date.component.ts +++ b/src/app/browse-by/browse-by-date/browse-by-date.component.ts @@ -18,7 +18,10 @@ import { combineLatest as observableCombineLatest, Observable, } from 'rxjs'; -import { map, tap, take } from 'rxjs/operators'; +import { + map, + take, +} from 'rxjs/operators'; import { ThemedBrowseByComponent } from 'src/app/shared/browse-by/themed-browse-by.component'; import { @@ -53,7 +56,6 @@ import { VarDirective } from '../../shared/utils/var.directive'; import { BrowseByMetadataComponent, browseParamsToOptions, - getBrowseSearchOptions, } from '../browse-by-metadata/browse-by-metadata.component'; @Component({ diff --git a/src/app/browse-by/browse-by-metadata/browse-by-metadata.component.ts b/src/app/browse-by/browse-by-metadata/browse-by-metadata.component.ts index 48416d68948..d17c2a1a7b4 100644 --- a/src/app/browse-by/browse-by-metadata/browse-by-metadata.component.ts +++ b/src/app/browse-by/browse-by-metadata/browse-by-metadata.component.ts @@ -23,7 +23,10 @@ import { of as observableOf, Subscription, } from 'rxjs'; -import { map, take, tap } from 'rxjs/operators'; +import { + map, + take, +} from 'rxjs/operators'; import { ThemedBrowseByComponent } from 'src/app/shared/browse-by/themed-browse-by.component'; import { diff --git a/src/app/browse-by/browse-by-title/browse-by-title.component.ts b/src/app/browse-by/browse-by-title/browse-by-title.component.ts index 9ccc74f7cff..296386d9d94 100644 --- a/src/app/browse-by/browse-by-title/browse-by-title.component.ts +++ b/src/app/browse-by/browse-by-title/browse-by-title.component.ts @@ -9,7 +9,10 @@ import { import { Params } from '@angular/router'; import { TranslateModule } from '@ngx-translate/core'; import { combineLatest as observableCombineLatest } from 'rxjs'; -import { map, take, distinctUntilChanged, tap } from 'rxjs/operators'; +import { + map, + take, +} from 'rxjs/operators'; import { SortDirection, @@ -28,7 +31,6 @@ import { VarDirective } from '../../shared/utils/var.directive'; import { BrowseByMetadataComponent, browseParamsToOptions, - getBrowseSearchOptions, } from '../browse-by-metadata/browse-by-metadata.component'; @Component({ diff --git a/src/app/menu-resolver.service.ts b/src/app/menu-resolver.service.ts index 9a0b8f5989f..683111b32ad 100644 --- a/src/app/menu-resolver.service.ts +++ b/src/app/menu-resolver.service.ts @@ -7,8 +7,9 @@ import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { combineLatest, combineLatest as observableCombineLatest, + mergeMap, Observable, - of as observableOf, mergeMap, + of as observableOf, } from 'rxjs'; import { filter, @@ -18,6 +19,7 @@ import { } from 'rxjs/operators'; import { PUBLICATION_CLAIMS_PATH } from './admin/admin-notifications/admin-notifications-routing-paths'; +import { AuthService } from './core/auth/auth.service'; import { BrowseService } from './core/browse/browse.service'; import { ConfigurationDataService } from './core/data/configuration-data.service'; import { AuthorizationDataService } from './core/data/feature-authorization/authorization-data.service'; @@ -48,7 +50,6 @@ import { OnClickMenuItemModel } from './shared/menu/menu-item/models/onclick.mod import { TextMenuItemModel } from './shared/menu/menu-item/models/text.model'; import { MenuItemType } from './shared/menu/menu-item-type.model'; import { MenuState } from './shared/menu/menu-state.model'; -import { AuthService } from './core/auth/auth.service'; /** * Creates all of the app's menus @@ -155,7 +156,7 @@ export class MenuResolverService { */ createAdminMenuIfLoggedIn$() { return this.authService.isAuthenticated().pipe( - mergeMap((isAuthenticated) => isAuthenticated ? this.createAdminMenu$() : observableOf(true)) + mergeMap((isAuthenticated) => isAuthenticated ? this.createAdminMenu$() : observableOf(true)), ); }