Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Release 1.119.0 (#719)

Thomas Kaul68d07cc8d44e
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5e2c44010c..7b496f727a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## 1.119.0 - 21.02.2022
+
+### Added
+
+- Added a trial for the subscription
+
## 1.118.0 - 20.02.2022
### Changed
diff --git a/apps/client/src/app/pages/account/account-page.component.ts b/apps/client/src/app/pages/account/account-page.component.ts
index 7aed7479d5..8352dc35ea 100644
--- a/apps/client/src/app/pages/account/account-page.component.ts
+++ b/apps/client/src/app/pages/account/account-page.component.ts
@@ -55,6 +55,8 @@ export class AccountPageComponent implements OnDestroy, OnInit {
public price: number;
public priceId: string;
public snackBarRef: MatSnackBarRef<TextOnlySnackBar>;
+ public trySubscriptionMail =
+ 'mailto:[email protected]?Subject=Ghostfolio Premium Trial&body=Hello%0D%0DI am interested in Ghostfolio Premium. Can you please send me a coupon code to try it for some time?%0D%0DKind regards';
public user: User;
private unsubscribeSubject = new Subject<void>();
diff --git a/apps/client/src/app/pages/account/account-page.html b/apps/client/src/app/pages/account/account-page.html
index 081784bfb6..ff518f0824 100644
--- a/apps/client/src/app/pages/account/account-page.html
+++ b/apps/client/src/app/pages/account/account-page.html
@@ -23,12 +23,12 @@
name="diamond-outline"
></ion-icon>
</div>
- <div *ngIf="user?.subscription?.expiresAt">
+ <div *ngIf="user?.subscription?.type === 'Premium'">
Valid until {{ user?.subscription?.expiresAt | date:
defaultDateFormat }}
</div>
<div
- *ngIf="hasPermissionForSubscription && !user?.subscription?.expiresAt"
+ *ngIf="hasPermissionForSubscription && user?.subscription?.type === 'Basic'"
>
<button
color="primary"
@@ -48,8 +48,20 @@
<span i18n> per year</span>
</div>
<a
- class="cursor-pointer d-block mt-2"
+ *ngIf="!user?.subscription?.expiresAt"
+ class="mr-2 my-2"
+ mat-stroked-button
+ [href]="trySubscriptionMail"
+ ><span i18n>Try Premium</span
+ ><ion-icon
+ class="ml-1 text-muted"
+ name="diamond-outline"
+ ></ion-icon
+ ></a>
+ <a
+ class="mr-2 my-2"
i18n
+ mat-stroked-button
[routerLink]=""
(click)="onRedeemCoupon()"
>Redeem Coupon</a
diff --git a/package.json b/package.json
index f98c3487bf..913ac835cb 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "ghostfolio",
- "version": "1.118.0",
+ "version": "1.119.0",
"homepage": "https://ghostfol.io",
"license": "AGPL-3.0",
"scripts": {