fix: adjust library account user info

Closes #331
This commit is contained in:
Jovan Krunić
2022-11-04 13:25:20 +01:00
parent 0caa69c28c
commit bafabb1d4e
6 changed files with 36 additions and 9 deletions

View File

@@ -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
}}:&nbsp;{{ patron[property] | amDateFormat: 'll' }}
</ng-template>
</ng-template>
</ion-col>
</ion-row>