mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Website: Add ability to directly link to a filtered pricing page view. (#23549)
Closes: https://github.com/fleetdm/confidential/issues/8672 Changes: - Updated the pricing page script to switch the pricing table to a different buying mode if a user visits /pricing#it or /pricing#security
This commit is contained in:
parent
ea8b58a356
commit
245c9c6f7a
1 changed files with 11 additions and 1 deletions
12
website/assets/js/pages/pricing.page.js
vendored
12
website/assets/js/pages/pricing.page.js
vendored
|
|
@ -13,7 +13,17 @@ parasails.registerPage('pricing', {
|
|||
// ║ ║╠╣ ║╣ ║ ╚╦╝║ ║ ║╣
|
||||
// ╩═╝╩╚ ╚═╝╚═╝ ╩ ╚═╝╩═╝╚═╝
|
||||
beforeMount: function() {
|
||||
if(this.primaryBuyingSituation){
|
||||
// Switch the pricing features table's mode and show all features if a user visits /pricing#it or /pricing#security
|
||||
if(window.location.hash){
|
||||
if(window.location.hash.toLowerCase() === '#it') {
|
||||
this.pricingMode = 'IT';
|
||||
this.showExpandedTable = true;
|
||||
} else if(window.location.hash.toLowerCase() === '#security'){
|
||||
this.pricingMode = 'Security';
|
||||
this.showExpandedTable = true;
|
||||
}
|
||||
window.location.hash = '';
|
||||
} else if(this.primaryBuyingSituation){
|
||||
if(['eo-security', 'vm'].includes(this.primaryBuyingSituation)){
|
||||
this.pricingMode = 'Security';
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue