Re-order pricing categories (#21297)
Follow up to https://github.com/fleetdm/fleet/pull/20993 to re-order categories on the pricing page.
This commit is contained in:
+3
-3
@@ -29,7 +29,7 @@ module.exports = {
|
||||
|
||||
let pricingTable = [];
|
||||
|
||||
let pricingTableCategories = ['Deployment', 'Configuration', 'Devices', 'Integrations', 'Support'];
|
||||
let pricingTableCategories = ['Devices', 'Deployment', 'Configuration', 'Integrations', 'Support'];
|
||||
for(let category of pricingTableCategories) {
|
||||
// Get all the features in that have a pricingTableFeatures array that contains this category.
|
||||
let featuresInThisCategory = _.filter(pricingTableFeatures, (feature)=>{
|
||||
@@ -45,7 +45,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
let pricingTableForSecurity = [];
|
||||
let categoryOrderForSecurityPricingTable = ['Deployment', 'Configuration', 'Devices', 'Integrations', 'Support'];
|
||||
let categoryOrderForSecurityPricingTable = ['Devices', 'Deployment', 'Configuration', 'Integrations', 'Support'];
|
||||
for(let category of categoryOrderForSecurityPricingTable) {
|
||||
// Get all the features in that have a pricingTableFeatures array that contains this category.
|
||||
let featuresInThisCategory = _.filter(pricingTableFeatures, (feature)=>{
|
||||
@@ -61,7 +61,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
|
||||
let categoryOrderForITPricingTable = ['Deployment', 'Configuration', 'Devices', 'Integrations', 'Support'];
|
||||
let categoryOrderForITPricingTable = ['Devices', 'Deployment', 'Configuration', 'Integrations', 'Support'];
|
||||
let pricingTableForIt = [];
|
||||
// Sort the IT-focused pricing table from the order of the elements in the categoryOrderForITPricingTable array.
|
||||
for(let category of categoryOrderForITPricingTable) {
|
||||
|
||||
Reference in New Issue
Block a user