Skip to content
Snippets Groups Projects
Commit 18ac311c authored by Florent POITTEVIN's avatar Florent POITTEVIN
Browse files

fix: 1493 limit number to relative archive to 4

parent b20bfe21
No related branches found
No related tags found
No related merge requests found
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
<div *ngIf="viewModeList === viewModeListEnum.tiles" <div *ngIf="viewModeList === viewModeListEnum.tiles"
class="tiles-container" 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" [archive]="archive"
(downloadChange)="download($event)" (downloadChange)="download($event)"
(selectChange)="showDetail($event)" (selectChange)="showDetail($event)"
......
...@@ -24,7 +24,6 @@ import { ...@@ -24,7 +24,6 @@ import {
import {map} from "rxjs/operators"; import {map} from "rxjs/operators";
import { import {
DateUtil, DateUtil,
EnumUtil,
isNonEmptyString, isNonEmptyString,
isNullOrUndefined, isNullOrUndefined,
MARK_AS_TRANSLATABLE, MARK_AS_TRANSLATABLE,
...@@ -58,7 +57,7 @@ export class HomeArchiveDetailPresentational extends SharedAbstractPresentationa ...@@ -58,7 +57,7 @@ export class HomeArchiveDetailPresentational extends SharedAbstractPresentationa
archive: Archive; archive: Archive;
@Input() @Input()
relativeArchive: Archive; relativeArchive: Archive[];
get metadata(): ArchiveMetadata.PublicMetadata | undefined { get metadata(): ArchiveMetadata.PublicMetadata | undefined {
if (isNullOrUndefined(this.archive) || isNullOrUndefined(this.archive.archiveMetadata)) { if (isNullOrUndefined(this.archive) || isNullOrUndefined(this.archive.archiveMetadata)) {
...@@ -67,10 +66,6 @@ export class HomeArchiveDetailPresentational extends SharedAbstractPresentationa ...@@ -67,10 +66,6 @@ export class HomeArchiveDetailPresentational extends SharedAbstractPresentationa
return this.archive.archiveMetadata.metadata; return this.archive.archiveMetadata.metadata;
} }
get enumUtil(): typeof EnumUtil {
return EnumUtil;
}
listInfo: Info[]; listInfo: Info[];
accessLevelIconName: IconNameEnum; accessLevelIconName: IconNameEnum;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment