Chart Color

This commit is contained in:
JonatanRek 2020-03-12 10:28:36 +01:00
parent b158f4a042
commit 3ff5e0d660
2 changed files with 4 additions and 2 deletions

View File

@ -161,7 +161,7 @@ if (!DeviceManager::approved($token)) {
}
// Diagnostic Data Write to DB
if (isset($settings)){
if ($settings != null || $settings != ""){
$data = ['mac' => $settings["network"]["mac"], 'ip_address' => $settings["network"]["ip"]];
if (array_key_exists("firmware_hash", $settings)) {
$data .= ['firmware_hash'=>$settings["firmware_hash"]];

View File

@ -56,7 +56,9 @@ class Utilities
'data' => [
'datasets' => [
[
'data' => $data
'data' => $data,
'borderColor' => "#d4def7",
'backgroundColor' => "#d4def7"
]
]
],