fleet/ee/vulnerability-dashboard/api/controllers/dashboard/view-welcome.js
Eric 0084cb785b
Vulnerability dashboard: Load content for /dashboard page after intial page load. (#31881)
Changes:
- Updated the vulnerability dashboard's /dashboard page to load the
content for the graphs after the initial page load.
- Added a new action: 'get-dashboard-graph-data'. This action is called
as a `Cloud()` method by the dashboard's page script when the page
loads.
2025-08-13 16:05:10 -05:00

33 lines
616 B
JavaScript

module.exports = {
friendlyName: 'View welcome page',
description: 'Display the dashboard "Welcome" page.',
exits: {
success: {
viewTemplatePath: 'pages/dashboard/welcome',
description: 'Display the welcome page for authenticated users.'
},
},
fn: async function () {
// Note: the data for this page is loaded by the 'get-priority-vulnerabilities' and 'get-dashboard-graph-data' actions after the page intially loads.
// This is done to prevent request timeouts when loading this page with a large dataset.
return {
realDataForGraphs: {}
};
}
};