Dashboard - Added chart cutout and text size default settings (#6976)
This commit is contained in:
@@ -44,11 +44,14 @@
|
||||
$dashboard_path = 'core/dashboard/resources/dashboard/icon.php';
|
||||
$dashboard_url = '';
|
||||
$dashboard_icon = '';
|
||||
$dashboard_heading_text_color = '';
|
||||
$dashboard_heading_background_color = '';
|
||||
$dashboard_number_text_color = '';
|
||||
$dashboard_groups = [];
|
||||
$dashboard_column_span = '';
|
||||
$dashboard_details_state = '';
|
||||
$dashboard_order = '';
|
||||
$dashboard_enabled = 'false';
|
||||
$dashboard_enabled = $row["dashboard_enabled"] ?? 'true';
|
||||
$dashboard_description = '';
|
||||
$dashboard_uuid = '';
|
||||
|
||||
@@ -319,6 +322,17 @@
|
||||
$dashboard_details_state = "expanded";
|
||||
}
|
||||
|
||||
//add a default value to $dashboard_chart_type
|
||||
if (!isset($dashboard_chart_type) && $dashboard_path == 'app/voicemails/resources/dashboard/voicemails.php') {
|
||||
$dashboard_chart_type = "none";
|
||||
}
|
||||
if (!isset($dashboard_chart_type) && $dashboard_path == 'app/xml_cdr/resources/dashboard/missed_calls.php') {
|
||||
$dashboard_chart_type = "none";
|
||||
}
|
||||
if (!isset($dashboard_chart_type) && $dashboard_path == 'app/xml_cdr/resources/dashboard/recent_calls.php') {
|
||||
$dashboard_chart_type = "none";
|
||||
}
|
||||
|
||||
//add an empty row
|
||||
$x = is_array($dashboard_groups) ? count($dashboard_groups) : 0;
|
||||
$dashboard_groups[$x]['dashboard_uuid'] = $dashboard_uuid;
|
||||
@@ -752,4 +766,4 @@
|
||||
//include the footer
|
||||
require_once "resources/footer.php";
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user