\n";
echo "
".$text['label-recent_calls']."\n";
if ($dashboard_chart_type == "doughnut") {
diff --git a/core/dashboard/dashboard_edit.php b/core/dashboard/dashboard_edit.php
index 693c6eb6dd..4b8a0ba9cc 100644
--- a/core/dashboard/dashboard_edit.php
+++ b/core/dashboard/dashboard_edit.php
@@ -584,12 +584,6 @@
echo "\n";
echo "
\n";
echo " \n";
echo " \n";
echo $text['description-dashboard_details_state']."\n";
diff --git a/core/dashboard/index.php b/core/dashboard/index.php
index e19fc97582..e1c9ea38a8 100644
--- a/core/dashboard/index.php
+++ b/core/dashboard/index.php
@@ -163,7 +163,7 @@
$expanded_all = true;
if (is_array($dashboard) && @sizeof($dashboard) != 0) {
foreach ($dashboard as $row) {
- if ($row['dashboard_details_state'] == 'contracted' || $row['dashboard_details_state'] == 'hidden') { $expanded_all = false; }
+ if ($row['dashboard_details_state'] == 'contracted' || $row['dashboard_details_state'] == 'hidden' || $row['dashboard_details_state'] == 'disabled') { $expanded_all = false; }
}
}
@@ -266,6 +266,12 @@
echo " display: none;\n";
echo "}\n";
}
+ if ($row['dashboard_details_state'] == "disabled") {
+ echo "#".$dashboard_name." .hud_box .hud_expander, \n";
+ echo "#".$dashboard_name." .hud_box .hud_details {\n";
+ echo " display: none;\n";
+ echo "}\n";
+ }
}
?>
}
@@ -315,6 +321,7 @@
$dashboard_heading_text_color = $row['dashboard_heading_text_color'] ?? $settings->get('theme', 'dashboard_heading_text_color');
$dashboard_number_background_color = $row['dashboard_number_background_color'] ?? $settings->get('theme', 'dashboard_number_background_color');
$dashboard_number_text_color = $row['dashboard_number_text_color'] ?? $settings->get('theme', 'dashboard_number_text_color');
+ $dashboard_details_state = $row['dashboard_details_state'];
echo "\n";
include($row['dashboard_path']);
echo " \n";
@@ -421,4 +428,4 @@
//show the footer
require_once "resources/footer.php";
-?>
\ No newline at end of file
+?>
diff --git a/core/dashboard/resources/dashboard/icon.php b/core/dashboard/resources/dashboard/icon.php
index 8dc81b0b59..1763ab78b1 100644
--- a/core/dashboard/resources/dashboard/icon.php
+++ b/core/dashboard/resources/dashboard/icon.php
@@ -11,7 +11,7 @@
//dashboard icon
echo "\n";
- echo " \n";
+ echo " \n";
echo " ". $dashboard_name . ""; // (isset($text['label-'.$dashboard_name])) ? $text['label-'.$dashboard_name] : $dashboard_name
echo " \n";
echo " \n";
|