fleet/website/api/controllers/view-fleetctl-preview.js
Eric a389822f42
Website: Add steps to /start questionnaire (#18074)
Closes: #18047

Changes:
- Added three steps to the /start questionnaire
- Updated the contact page to prefill information for logged-in users by
default
- Updated the layout of the f/leetctl-preview page for users navigating
to it from the /start page.
- Updated the quote for vulnerability management on the /start and
/contact pages to have a logo (There will be a separate PR, to add it to
testimonials.yml)

---------

Co-authored-by: Mike Thomas <[email protected]>
2024-04-08 19:39:19 +09:00

39 lines
623 B
JavaScript
Vendored

module.exports = {
friendlyName: 'View fleetctl preview',
description: 'Display "fleetctl preview" page.',
inputs: {
start: {
type: 'boolean',
description: 'A boolean flag that will hide the "next steps" buttons on the page if set to true',
defaultsTo: false,
}
},
exits: {
success: {
viewTemplatePath: 'pages/fleetctl-preview'
},
redirect: {
description: 'The requesting user is not logged in.',
responseType: 'redirect'
},
},
fn: async function ({start}) {
// Respond with view.
return {hideNextStepsButtons: start};
}
};