mirror of
https://github.com/fleetdm/fleet
synced 2026-05-21 16:08:47 +00:00
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.
33 lines
616 B
JavaScript
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: {}
|
|
};
|
|
|
|
}
|
|
|
|
|
|
};
|