From 134ecd6d48167d3111f512abf997dfc739cb1c62 Mon Sep 17 00:00:00 2001 From: FrancescoMolinaro Date: Wed, 18 Dec 2024 16:09:13 +0100 Subject: [PATCH] [DURACOM-304] fix lint --- .../item-bitstreams.component.ts | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/app/item-page/edit-item-page/item-bitstreams/item-bitstreams.component.ts b/src/app/item-page/edit-item-page/item-bitstreams/item-bitstreams.component.ts index c02418bceb9..205c67fa61e 100644 --- a/src/app/item-page/edit-item-page/item-bitstreams/item-bitstreams.component.ts +++ b/src/app/item-page/edit-item-page/item-bitstreams/item-bitstreams.component.ts @@ -1,4 +1,9 @@ -import { AsyncPipe, CommonModule, NgForOf, NgIf } from '@angular/common'; +import { + AsyncPipe, + CommonModule, + NgForOf, + NgIf, +} from '@angular/common'; import { ChangeDetectorRef, Component, @@ -21,27 +26,25 @@ import { combineLatest, Observable, Subscription, - zip as observableZip, } from 'rxjs'; import { filter, map, switchMap, - take, tap, + take, + tap, } from 'rxjs/operators'; +import { AlertComponent } from 'src/app/shared/alert/alert.component'; +import { AlertType } from 'src/app/shared/alert/alert-type'; import { ObjectCacheService } from '../../../core/cache/object-cache.service'; import { BitstreamDataService } from '../../../core/data/bitstream-data.service'; import { BundleDataService } from '../../../core/data/bundle-data.service'; import { ItemDataService } from '../../../core/data/item-data.service'; -import { FieldChangeType } from '../../../core/data/object-updates/field-change-type.model'; -import { FieldUpdate } from '../../../core/data/object-updates/field-update.model'; -import { FieldUpdates } from '../../../core/data/object-updates/field-updates.model'; import { ObjectUpdatesService } from '../../../core/data/object-updates/object-updates.service'; import { PaginatedList } from '../../../core/data/paginated-list.model'; import { RemoteData } from '../../../core/data/remote-data'; import { RequestService } from '../../../core/data/request.service'; -import { Bitstream } from '../../../core/shared/bitstream.model'; import { Bundle } from '../../../core/shared/bundle.model'; import { NoContent } from '../../../core/shared/NoContent.model'; import { @@ -54,6 +57,7 @@ import { } from '../../../shared/empty.util'; import { ThemedLoadingComponent } from '../../../shared/loading/themed-loading.component'; import { NotificationsService } from '../../../shared/notifications/notifications.service'; +import { PaginationComponentOptions } from '../../../shared/pagination/pagination-component-options.model'; import { ResponsiveTableSizes } from '../../../shared/responsive-table-sizes/responsive-table-sizes'; import { PaginatedSearchOptions } from '../../../shared/search/models/paginated-search-options.model'; import { ObjectValuesPipe } from '../../../shared/utils/object-values-pipe'; @@ -61,9 +65,6 @@ import { VarDirective } from '../../../shared/utils/var.directive'; import { AbstractItemUpdateComponent } from '../abstract-item-update/abstract-item-update.component'; import { ItemBitstreamsService } from './item-bitstreams.service'; import { ItemEditBitstreamBundleComponent } from './item-edit-bitstream-bundle/item-edit-bitstream-bundle.component'; -import { PaginationComponentOptions } from '../../../shared/pagination/pagination-component-options.model'; -import { AlertComponent } from 'src/app/shared/alert/alert.component'; -import { AlertType } from 'src/app/shared/alert/alert-type'; @Component({ selector: 'ds-item-bitstreams', @@ -237,11 +238,11 @@ export class ItemBitstreamsComponent extends AbstractItemUpdateComponent impleme this.bundlesOptions = Object.assign(new PaginationComponentOptions(), this.bundlesOptions, { currentPage: currentPage || this.bundlesOptions.currentPage + 1, }); - this.itemService.getBundles(this.item.id, new PaginatedSearchOptions({pagination: this.bundlesOptions})).pipe( + this.itemService.getBundles(this.item.id, new PaginatedSearchOptions({ pagination: this.bundlesOptions })).pipe( getFirstSucceededRemoteData(), getRemoteDataPayload(), tap((bundlesPL: PaginatedList) => - this.showLoadMoreLink$.next(bundlesPL.pageInfo.currentPage < bundlesPL.pageInfo.totalPages) + this.showLoadMoreLink$.next(bundlesPL.pageInfo.currentPage < bundlesPL.pageInfo.totalPages), ), map((bundlePage: PaginatedList) => bundlePage.page), ).subscribe((bundles: Bundle[]) => {