Commit 3a92f989 authored by Emiliano Balbuena's avatar Emiliano Balbuena

(chore): Add feature flag

1 merge request!716WIP: Modal pager
Pipeline #108231635 passed with stages
in 41 minutes and 57 seconds
......@@ -131,6 +131,7 @@ export class MediaModalComponent implements OnInit, OnDestroy {
private clientMetaService: ClientMetaService,
private featureService: FeaturesService,
private horizontalFeed: HorizontalFeedService,
private features: FeaturesService,
@SkipSelf() injector: Injector
) {
this.clientMetaService
......@@ -219,6 +220,10 @@ export class MediaModalComponent implements OnInit, OnDestroy {
}
async setNeighborEntities() {
if (!this.features.has('modal-pager')) {
return;
}
const { prev, next } = await this.horizontalFeed.get(
'container',
this.entity
......
Please register or to comment