mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-19 16:13:06 +00:00
feat: add duration pipe with frequency capabilites
This commit is contained in:
@@ -30,7 +30,9 @@
|
||||
<ion-item-divider (click)="frequency.click()">
|
||||
<ion-label>{{
|
||||
frequency.children[0].item.repeatFrequency
|
||||
? (frequency.children[0].item.repeatFrequency | amDuration)
|
||||
? (frequency.children[0].item.repeatFrequency
|
||||
| durationLocalized: true
|
||||
| sentencecase)
|
||||
: ('data.chips.add_events.popover.SINGLE' | translate | titlecase)
|
||||
}}</ion-label>
|
||||
<ion-checkbox
|
||||
|
||||
@@ -6,8 +6,12 @@
|
||||
<p>
|
||||
<ion-icon name="calendar"></ion-icon>
|
||||
<span *ngIf="item.dates[0] && item.dates[item.dates.length - 1]">
|
||||
{{ item.repeatFrequency | amDuration }},
|
||||
{{ item.dates[0] | dateFormat: 'weekday:long' }}
|
||||
<span *ngIf="item.repeatFrequency">
|
||||
{{
|
||||
item.repeatFrequency | durationLocalized: true | sentencecase
|
||||
}},
|
||||
{{ item.dates[0] | dateFormat: 'weekday:long' }}
|
||||
</span>
|
||||
<span>
|
||||
({{ item.dates[0] | dateFormat }} -
|
||||
{{ item.dates[item.dates.length - 1] | dateFormat }})
|
||||
|
||||
@@ -32,7 +32,11 @@
|
||||
*ngIf="scheduleEvent.dateSeries.repeatFrequency"
|
||||
>
|
||||
{{ 'schedule.card.forEach' | translate }}
|
||||
{{ scheduleEvent.dateSeries.repeatFrequency | amDuration }}
|
||||
{{
|
||||
scheduleEvent.dateSeries.repeatFrequency
|
||||
| durationLocalized: true
|
||||
| sentencecase
|
||||
}}
|
||||
{{ 'schedule.card.until' | translate }}
|
||||
{{
|
||||
scheduleEvent.dateSeries.dates | last | amDateFormat: 'DD. MMM YYYY'
|
||||
|
||||
Reference in New Issue
Block a user