mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-19 07:53:02 +00:00
Autofix lint issues
This commit is contained in:
@@ -1,9 +1,27 @@
|
||||
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
|
||||
import { BehaviorSubject, combineLatest, Observable, Subscription } from 'rxjs';
|
||||
import { map, take } from 'rxjs/operators';
|
||||
import { EventType, Router, Scroll } from '@angular/router';
|
||||
import { getCommunityPageRoute } from '../../../community-page/community-page-routing-paths';
|
||||
import {
|
||||
Component,
|
||||
Input,
|
||||
OnDestroy,
|
||||
OnInit,
|
||||
} from '@angular/core';
|
||||
import {
|
||||
EventType,
|
||||
Router,
|
||||
Scroll,
|
||||
} from '@angular/router';
|
||||
import {
|
||||
BehaviorSubject,
|
||||
combineLatest,
|
||||
Observable,
|
||||
Subscription,
|
||||
} from 'rxjs';
|
||||
import {
|
||||
map,
|
||||
take,
|
||||
} from 'rxjs/operators';
|
||||
|
||||
import { getCollectionPageRoute } from '../../../collection-page/collection-page-routing-paths';
|
||||
import { getCommunityPageRoute } from '../../../community-page/community-page-routing-paths';
|
||||
import { BrowseService } from '../../../core/browse/browse.service';
|
||||
import { PaginatedList } from '../../../core/data/paginated-list.model';
|
||||
import { RemoteData } from '../../../core/data/remote-data';
|
||||
@@ -88,7 +106,7 @@ export class ComcolPageBrowseByComponent implements OnDestroy, OnInit {
|
||||
this.router.events,
|
||||
]).subscribe(([navOptions, scrollEvent]: [ComColPageNavOption[], Scroll]) => {
|
||||
if (scrollEvent.type === EventType.Scroll) {
|
||||
for (let option of navOptions) {
|
||||
for (const option of navOptions) {
|
||||
if (option.routerLink === scrollEvent.routerEvent.urlAfterRedirects.split('?')[0]) {
|
||||
this.currentOption$.next(option);
|
||||
}
|
||||
@@ -105,7 +123,7 @@ export class ComcolPageBrowseByComponent implements OnDestroy, OnInit {
|
||||
this.allOptions$.pipe(
|
||||
take(1),
|
||||
).subscribe((allOptions: ComColPageNavOption[]) => {
|
||||
for (let option of allOptions) {
|
||||
for (const option of allOptions) {
|
||||
if (option.id === event.target.value) {
|
||||
this.currentOption$.next(option[0]);
|
||||
void this.router.navigate([option.routerLink], { queryParams: option.params });
|
||||
|
Reference in New Issue
Block a user