Skip to content

Commit

Permalink
fix(3dslide): desactivé pour ios
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoblanc committed Aug 14, 2019
1 parent e96b57e commit 1d4babc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/app/components/horizontal/horizontal.component.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<div>
<!-- TITRE DU TYPE DE LISTE -->
<ath-section [title]="listMetaMedia?.title" ></ath-section>

<!-- LISTE DE META-MEDIA -->
<ath-slides3d [metaMedias]="listMetaMedia.metaMedias"></ath-slides3d>
<ath-slides3d *ngIf="!isIOS" [metaMedias]="listMetaMedia.metaMedias"></ath-slides3d>

<div class="card-container">
<div *ngIf="isIOS" class="card-container">
<ath-card *ngFor="let media of listMetaMedia.metaMedias" [media]="media" ></ath-card>
</div>
</div>
7 changes: 4 additions & 3 deletions src/app/components/horizontal/horizontal.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Component, OnInit, Input } from '@angular/core';
import { ListMetaMedias } from '../../models/meta-media/list-meta-medias';
import { Platform } from '@ionic/angular';

/**
* Ce composant représente un bloc horizontal (titre + metaMedia)
Expand All @@ -16,12 +17,12 @@ export class HorizontalComponent implements OnInit {

@Input() listMetaMedia: ListMetaMedias;


constructor() { }
isIOS = false;
constructor(private platform: Platform) { }


ngOnInit() {

this.isIOS = this.platform.is('ios');
}


Expand Down

0 comments on commit 1d4babc

Please sign in to comment.