fleet/website/api/controllers/view-transparency.js
Eric ba2f79e1c4
Website: personalize /better page for Secure Frame users (#20890)
Related to: https://github.com/fleetdm/confidential/issues/7227

Changes:
- Added a banner to the /better page that is visible to users who visit
it with a `?utm_content=secureframe` query param.
- Updated the `<animated-arrow-button>` component to support customizing
text and arrow color.
2024-07-31 17:40:41 -05:00

25 lines
341 B
JavaScript
Vendored

module.exports = {
friendlyName: 'View transparency',
description: 'Display "Transparency" page.',
exits: {
success: {
viewTemplatePath: 'pages/transparency'
}
},
fn: async function () {
// Respond with view.
return {showSecureframeBanner: this.req.param('utm_content') === 'secureframe'};
}
};