Fix the count in StatuslabelsController@getAssetsCountByStatuslabel() function that allows it to pass the correct index

Also edit the default color for assets with the Pending label, so it match the color in the docs
This commit is contained in:
Ivan Nieto Vivanco 2021-08-18 14:08:35 -05:00
parent 923d2a79ae
commit 4207858a14
2 changed files with 2 additions and 1 deletions

View file

@ -67,7 +67,7 @@ class Helper
{
$colors = [
"#008941",
"#FF4A46",
"#FF851B",
"#006FA6",
"#A30059",
"#1CE6FF",

View file

@ -182,6 +182,7 @@ class StatuslabelsController extends Controller
if ($statuslabel->color!='') {
$colors_array[] = $statuslabel->color;
$default_color_count++;
} else {
$colors_array[] = Helper::defaultChartColors($default_color_count);
$default_color_count++;