From a9d3923f6b4b8e38bc0fefded379fb2a01a6984b Mon Sep 17 00:00:00 2001 From: Antonin Coquet <ext.sopra.acoquet@grandlyon.com> Date: Thu, 6 May 2021 14:04:26 +0200 Subject: [PATCH] fix: change other Openning to Opening --- src/app/models/time.model.ts | 2 +- .../structure-details/structure-details.component.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/models/time.model.ts b/src/app/models/time.model.ts index ca8b80f29..7db99ae8b 100644 --- a/src/app/models/time.model.ts +++ b/src/app/models/time.model.ts @@ -6,7 +6,7 @@ export class Time { Object.assign(this, obj); } - public formatOpenningDate(): string { + public formatOpeningDate(): string { return this.formatDate(this.opening); } diff --git a/src/app/structure-list/components/structure-details/structure-details.component.html b/src/app/structure-list/components/structure-details/structure-details.component.html index 3f64d6ad0..427e9f3af 100644 --- a/src/app/structure-list/components/structure-details/structure-details.component.html +++ b/src/app/structure-list/components/structure-details/structure-details.component.html @@ -175,7 +175,7 @@ <app-svg-icon [type]="'ico'" [icon]="'accueil'" [iconClass]="'icon-32'"></app-svg-icon> <h2>Accueil</h2> </div> - <!-- Openning Hours --> + <!-- Opening Hours --> <div fxLayout="row" class="w-100 mobile-column"> <div *ngIf="structure.hours.hasData()" fxFlex="50%"> <h3 class="subtitle">Horaires d’ouverture au public</h3> @@ -185,9 +185,9 @@ <h4>{{ day.key | day }}</h4> <div class="opening-time" fxLayout="row" fxLayoutAlign="none flex-end"> <div *ngFor="let timeRange of day.value.time; let isFirst = first"> - <p *ngIf="isFirst">de {{ timeRange.formatOpenningDate() }} à {{ timeRange.formatClosingDate() }}</p> + <p *ngIf="isFirst">de {{ timeRange.formatOpeningDate() }} à {{ timeRange.formatClosingDate() }}</p> <p *ngIf="!isFirst && timeRange.opening"> - et de {{ timeRange.formatOpenningDate() }} à {{ timeRange.formatClosingDate() }} + et de {{ timeRange.formatOpeningDate() }} à {{ timeRange.formatClosingDate() }} </p> </div> </div> -- GitLab