Feature/add distance to now to the subscription expiration date (#1895)

* Add distance to now

* Update changelog
This commit is contained in:
Thomas Kaul
2023-04-25 20:23:07 +02:00
committed by GitHub
parent 7b77dc044a
commit 29d53c7df4
2 changed files with 2 additions and 1 deletions

View File

@@ -56,7 +56,7 @@
*ngIf="userItem?.subscription?.type === 'Premium'"
class="ml-1"
[enableLink]="false"
[title]="userItem.subscription.expiresAt | date: defaultDateFormat"
[title]="'Expires ' + formatDistanceToNow(userItem.subscription.expiresAt) + ' (' + (userItem.subscription.expiresAt | date: defaultDateFormat) + ')'"
></gf-premium-indicator>
</div>
</td>