diff --git a/modules/portmaster/projects/safing/portmaster-api/src/lib/spn.service.ts b/modules/portmaster/projects/safing/portmaster-api/src/lib/spn.service.ts index 2beeef92..02b194ba 100644 --- a/modules/portmaster/projects/safing/portmaster-api/src/lib/spn.service.ts +++ b/modules/portmaster/projects/safing/portmaster-api/src/lib/spn.service.ts @@ -85,7 +85,7 @@ export class SPNService { logout(purge = false): Observable> { let params = new HttpParams(); if (!!purge) { - params.set("purge", "true") + params = params.set("purge", "true") } return this.http.delete(`${this.httpAPI}/v1/spn/account/logout`, { params, diff --git a/modules/portmaster/src/app/pages/dashboard/dashboard.component.html b/modules/portmaster/src/app/pages/dashboard/dashboard.component.html index 457e9e45..df3a3f21 100644 --- a/modules/portmaster/src/app/pages/dashboard/dashboard.component.html +++ b/modules/portmaster/src/app/pages/dashboard/dashboard.component.html @@ -7,45 +7,62 @@

- + Welcome back, {{ profile.username }}! + Clear - + Welcome back! - ⮜ New: Click shield to open dashboard + + + + + New: Click shield to open dashboard +
- -
- Your current plan is {{ profile.current_plan?.name || 'N/A' }} - - - and ends {{ profile.subscription ? ' in ': ''}} - {{ profile.subscription ? (profile.subscription.ends_at | timeAgo) : 'never'}} - +
+ + Your current plan is + + {{ profile?.current_plan?.name || 'Portmaster Free' }} - - and auto-renews in - {{ profile.subscription!.next_billing_date | timeAgo }} + + + + and ends + + in + + {{ profile?.subscription?.ends_at! | timeAgo }} + + + never + + + + and auto-renews in + {{ profile?.subscription?.next_billing_date! | timeAgo }} -
+
+
- - - - -
+
@@ -189,8 +206,19 @@

-