mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-03-12 09:42:27 +00:00
@@ -11,6 +11,7 @@ export class ProfilePageComponent {
|
||||
patron?: PAIAPatron;
|
||||
|
||||
propertiesToShow: (keyof PAIAPatron)[] = [
|
||||
'id',
|
||||
'name',
|
||||
'email',
|
||||
'address',
|
||||
|
||||
@@ -25,7 +25,18 @@
|
||||
{{ patron[property] }}
|
||||
</ng-container>
|
||||
<ng-template #date>
|
||||
{{ patron[property] | amDateFormat: 'll' }}
|
||||
<ng-container
|
||||
*ngIf="patron[property] === '9999-12-31'; else exactDate"
|
||||
>
|
||||
{{
|
||||
'library.account.pages.profile.values.unlimited' | translate
|
||||
}}
|
||||
</ng-container>
|
||||
<ng-template #exactDate>
|
||||
{{
|
||||
'library.account.pages.profile.values.expires' | translate
|
||||
}}: {{ patron[property] | amDateFormat: 'll' }}
|
||||
</ng-template>
|
||||
</ng-template>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
|
||||
Reference in New Issue
Block a user