Fix no usage_summary for services not active yet, minor improvements to traffic graph
This commit is contained in:
parent
b01976a6ae
commit
84fa5f6546
@ -136,9 +136,9 @@ class Adsl extends ServiceType implements ServiceItem,ServiceUsage
|
||||
/**
|
||||
* Find the last date any traffic was recorded for a service
|
||||
*
|
||||
* @return AdslTraffic
|
||||
* @return AdslTraffic|null
|
||||
*/
|
||||
private function usage_last_date(): AdslTraffic
|
||||
private function usage_last_date(): ?AdslTraffic
|
||||
{
|
||||
return $this->traffic
|
||||
->sortBy('date')
|
||||
|
@ -10,7 +10,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Period</th>
|
||||
<th class="text-right">Traffic</th>
|
||||
<th class="text-right">Traffic <small>(GB)</small></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -41,7 +41,10 @@
|
||||
|
||||
Highcharts.setOptions({
|
||||
global: {
|
||||
timezoneOffset: timezone
|
||||
timezoneOffset: timezone,
|
||||
},
|
||||
lang: {
|
||||
thousandsSep: ','
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user