From 225b1eae70a38fe36200be90a781fe308c58471c Mon Sep 17 00:00:00 2001
From: Jess Robinson
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 @@
Compare all our main account plans for 1 and 3 years in the table below. @@ -292,7 +292,7 @@
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() {