diff --git a/src/app/account-app/account-upgrades.component.html b/src/app/account-app/account-upgrades.component.html index b99ea624b..851d57464 100644 --- a/src/app/account-app/account-upgrades.component.html +++ b/src/app/account-app/account-upgrades.component.html @@ -28,17 +28,17 @@

--> -

Our recommended plans

+

Our recommended plans

We offer a 20% discount on all our plans if you renew for 3 years, which locks in the current price for your entire selected subcription period. To review and compare all our plans, please see the table further down. @@ -170,7 +170,7 @@



-

All our price plans

+

All our price plans

Compare all our main account plans for 1 and 3 years in the table below. @@ -292,7 +292,7 @@

Main Account Add-ons



-

Sub-Accounts (additional accounts)

+

Sub-Accounts (additional accounts)

Sub-accounts are additional accounts that are managed by your main account. They are ideal for companies, organizations, and families who need separate accounts with their own dedicated storage space and account settings.

diff --git a/src/app/account-app/account-upgrades.component.ts b/src/app/account-app/account-upgrades.component.ts index e521832de..13702d8d0 100644 --- a/src/app/account-app/account-upgrades.component.ts +++ b/src/app/account-app/account-upgrades.component.ts @@ -19,7 +19,7 @@ import { Component, Input, OnInit, ViewChild } from '@angular/core'; import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar'; - +import { Router, NavigationEnd } from '@angular/router'; import { CartService } from './cart.service'; import { RunboxMe, RunboxWebmailAPI } from '../rmmapi/rbwebmail'; import { PaymentsService } from './payments.service'; @@ -77,7 +77,17 @@ export class AccountUpgradesComponent implements OnInit { private snackbar: MatSnackBar, private rmm: RMM, public sidenavService: RunboxSidenavService, + private router: Router, ) { + this.router.events.subscribe(e => { + if (e instanceof NavigationEnd) { + const tree = router.parseUrl(router.url); + if (tree.fragment) { + const element = document.querySelector("#" + tree.fragment); + if (element) { element.scrollIntoView(true); } + } + } + }); } ngOnInit() {