Dashboard - Call Forward: Add permissions to chart data.
This commit is contained in:
parent
7326cb845a
commit
a677c6abc3
|
|
@ -110,23 +110,41 @@
|
||||||
echo " type: 'doughnut',\n";
|
echo " type: 'doughnut',\n";
|
||||||
echo " data: {\n";
|
echo " data: {\n";
|
||||||
echo " labels: [\n";
|
echo " labels: [\n";
|
||||||
|
if (permission_exists('do_not_disturb')) {
|
||||||
echo " '".$text['label-dnd'].": ".$stats['dnd']."',\n";
|
echo " '".$text['label-dnd'].": ".$stats['dnd']."',\n";
|
||||||
|
}
|
||||||
|
if (permission_exists('follow_me')) {
|
||||||
echo " '".$text['label-follow_me'].": ".$stats['follow_me']."',\n";
|
echo " '".$text['label-follow_me'].": ".$stats['follow_me']."',\n";
|
||||||
|
}
|
||||||
|
if (permission_exists('call_forward')) {
|
||||||
echo " '".$text['label-call_forward'].": ".$stats['call_forward']."',\n";
|
echo " '".$text['label-call_forward'].": ".$stats['call_forward']."',\n";
|
||||||
|
}
|
||||||
echo " '".$text['label-active'].": ".$stats['active']."',\n";
|
echo " '".$text['label-active'].": ".$stats['active']."',\n";
|
||||||
echo " ],\n";
|
echo " ],\n";
|
||||||
echo " datasets: [{\n";
|
echo " datasets: [{\n";
|
||||||
echo " data: [\n";
|
echo " data: [\n";
|
||||||
|
if (permission_exists('do_not_disturb')) {
|
||||||
echo " '".$stats['dnd']."',\n";
|
echo " '".$stats['dnd']."',\n";
|
||||||
|
}
|
||||||
|
if (permission_exists('follow_me')) {
|
||||||
echo " '".$stats['follow_me']."',\n";
|
echo " '".$stats['follow_me']."',\n";
|
||||||
|
}
|
||||||
|
if (permission_exists('call_forward')) {
|
||||||
echo " '".$stats['call_forward']."',\n";
|
echo " '".$stats['call_forward']."',\n";
|
||||||
|
}
|
||||||
echo " '".$stats['active']."',\n";
|
echo " '".$stats['active']."',\n";
|
||||||
echo " 0.00001,\n";
|
echo " 0.00001,\n";
|
||||||
echo " ],\n";
|
echo " ],\n";
|
||||||
echo " backgroundColor: [\n";
|
echo " backgroundColor: [\n";
|
||||||
|
if (permission_exists('do_not_disturb')) {
|
||||||
echo " '".$_SESSION['dashboard']['call_forward_chart_color_do_not_disturb']['text']."',\n";
|
echo " '".$_SESSION['dashboard']['call_forward_chart_color_do_not_disturb']['text']."',\n";
|
||||||
|
}
|
||||||
|
if (permission_exists('follow_me')) {
|
||||||
echo " '".$_SESSION['dashboard']['call_forward_chart_color_follow_me']['text']."',\n";
|
echo " '".$_SESSION['dashboard']['call_forward_chart_color_follow_me']['text']."',\n";
|
||||||
|
}
|
||||||
|
if (permission_exists('call_forward')) {
|
||||||
echo " '".$_SESSION['dashboard']['call_forward_chart_color_call_forward']['text']."',\n";
|
echo " '".$_SESSION['dashboard']['call_forward_chart_color_call_forward']['text']."',\n";
|
||||||
|
}
|
||||||
echo " '".$_SESSION['dashboard']['call_forward_chart_color_active']['text']."',\n";
|
echo " '".$_SESSION['dashboard']['call_forward_chart_color_active']['text']."',\n";
|
||||||
echo " '".$_SESSION['dashboard']['call_forward_chart_color_active']['text']."',\n";
|
echo " '".$_SESSION['dashboard']['call_forward_chart_color_active']['text']."',\n";
|
||||||
echo " ],\n";
|
echo " ],\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue