From 18ac311c587eaeed6f848e231016ed9b4e8d9dd5 Mon Sep 17 00:00:00 2001 From: Florent POITTEVIN <poittevin.florent@gmail.com> Date: Fri, 3 Jul 2020 11:15:40 +0200 Subject: [PATCH] fix: 1493 limit number to relative archive to 4 --- .../home-archive-detail.presentational.html | 2 +- .../home-archive-detail.presentational.ts | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/app/features/home/components/presentationals/home-archive-form/home-archive-detail.presentational.html b/src/app/features/home/components/presentationals/home-archive-form/home-archive-detail.presentational.html index a83af8cf2..633f528ea 100644 --- a/src/app/features/home/components/presentationals/home-archive-form/home-archive-detail.presentational.html +++ b/src/app/features/home/components/presentationals/home-archive-form/home-archive-detail.presentational.html @@ -146,7 +146,7 @@ <div *ngIf="viewModeList === viewModeListEnum.tiles" class="tiles-container" > - <dlcm-home-archive-tile *ngFor="let archive of relativeArchive" + <dlcm-home-archive-tile *ngFor="let archive of relativeArchive.slice(0, 4)" [archive]="archive" (downloadChange)="download($event)" (selectChange)="showDetail($event)" diff --git a/src/app/features/home/components/presentationals/home-archive-form/home-archive-detail.presentational.ts b/src/app/features/home/components/presentationals/home-archive-form/home-archive-detail.presentational.ts index 4dd066d29..254918536 100644 --- a/src/app/features/home/components/presentationals/home-archive-form/home-archive-detail.presentational.ts +++ b/src/app/features/home/components/presentationals/home-archive-form/home-archive-detail.presentational.ts @@ -24,7 +24,6 @@ import { import {map} from "rxjs/operators"; import { DateUtil, - EnumUtil, isNonEmptyString, isNullOrUndefined, MARK_AS_TRANSLATABLE, @@ -58,7 +57,7 @@ export class HomeArchiveDetailPresentational extends SharedAbstractPresentationa archive: Archive; @Input() - relativeArchive: Archive; + relativeArchive: Archive[]; get metadata(): ArchiveMetadata.PublicMetadata | undefined { if (isNullOrUndefined(this.archive) || isNullOrUndefined(this.archive.archiveMetadata)) { @@ -67,10 +66,6 @@ export class HomeArchiveDetailPresentational extends SharedAbstractPresentationa return this.archive.archiveMetadata.metadata; } - get enumUtil(): typeof EnumUtil { - return EnumUtil; - } - listInfo: Info[]; accessLevelIconName: IconNameEnum; -- GitLab