mirror of
https://github.com/fleetdm/fleet
synced 2026-05-12 03:28:48 +00:00
* Create pricing-features-table.yml * update built-static-content to add the pricing table configuration to builtStaticContent * Update pricing page to use builtStaticContent.pricingTable * Update view-pricing.js * update pricing table, lint fix Co-authored-by: Mike McNeil <[email protected]>
36 lines
581 B
JavaScript
Vendored
36 lines
581 B
JavaScript
Vendored
module.exports = {
|
|
|
|
|
|
friendlyName: 'View pricing',
|
|
|
|
|
|
description: 'Display "Pricing" page.',
|
|
|
|
|
|
exits: {
|
|
|
|
success: {
|
|
viewTemplatePath: 'pages/pricing'
|
|
},
|
|
|
|
badConfig: {
|
|
responseType: 'badConfig'
|
|
},
|
|
|
|
},
|
|
|
|
|
|
fn: async function () {
|
|
|
|
if(!_.isObject(sails.config.builtStaticContent) || !_.isArray(sails.config.builtStaticContent.pricingTable)) {
|
|
throw {badConfig: 'builtStaticContent.pricingTable'};
|
|
}
|
|
let pricingTable = sails.config.builtStaticContent.pricingTable;
|
|
|
|
// Respond with view.
|
|
return { pricingTable };
|
|
|
|
}
|
|
|
|
|
|
};
|