mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-07-09 00:37:40 +02:00
Add &$extraFooterScripts to support data usage graph
This commit is contained in:
parent
85663341eb
commit
4d0de82986
@ -7,7 +7,7 @@ require_once 'includes/functions.php';
|
||||
/**
|
||||
* Displays the dashboard
|
||||
*/
|
||||
function DisplayDashboard(): void
|
||||
function DisplayDashboard(&$extraFooterScripts): void
|
||||
{
|
||||
// instantiate RaspAP objects
|
||||
$system = new \RaspAP\System\Sysinfo;
|
||||
@ -123,6 +123,7 @@ function DisplayDashboard(): void
|
||||
"status"
|
||||
)
|
||||
);
|
||||
$extraFooterScripts[] = array('src'=>'app/js/dashboardchart.js', 'defer'=>false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user