mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Fix disappearing tooltips on SVG reload
Use a unified linebreak in the chart controller, so the tooltip handling will recognize the titles as identical
This commit is contained in:
parent
0fd561928a
commit
40611659ed
@ -67,7 +67,7 @@ class Tooltip
|
|||||||
*/
|
*/
|
||||||
public function __construct (
|
public function __construct (
|
||||||
$data = array(),
|
$data = array(),
|
||||||
$format = '<b>{title}</b></b><br> {value} of {sum} {label}'
|
$format = '<b>{title}</b></b><br/> {value} of {sum} {label}'
|
||||||
) {
|
) {
|
||||||
$this->data = array_merge($this->data, $data);
|
$this->data = array_merge($this->data, $data);
|
||||||
$this->defaultFormat = $format;
|
$this->defaultFormat = $format;
|
||||||
|
@ -154,7 +154,7 @@ class Monitoring_ChartController extends Controller
|
|||||||
->setXAxis(new \Icinga\Chart\Unit\StaticAxis())
|
->setXAxis(new \Icinga\Chart\Unit\StaticAxis())
|
||||||
->setAxisMin(null, 0);
|
->setAxisMin(null, 0);
|
||||||
|
|
||||||
$tooltip = t('<b>{title}:</b><br />{value} of {sum} services are {label}');
|
$tooltip = t('<b>{title}:</b><br>{value} of {sum} services are {label}');
|
||||||
$this->view->chart->drawBars(
|
$this->view->chart->drawBars(
|
||||||
array(
|
array(
|
||||||
'label' => t('Ok'),
|
'label' => t('Ok'),
|
||||||
@ -206,7 +206,7 @@ class Monitoring_ChartController extends Controller
|
|||||||
$hostgroup->hosts_unreachable_unhandled
|
$hostgroup->hosts_unreachable_unhandled
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$tooltip = t('<b>{title}:</b><br /> {value} of {sum} hosts are {label}');
|
$tooltip = t('<b>{title}:</b><br> {value} of {sum} hosts are {label}');
|
||||||
$this->view->chart = new GridChart();
|
$this->view->chart = new GridChart();
|
||||||
$this->view->chart->alignTopLeft();
|
$this->view->chart->alignTopLeft();
|
||||||
$this->view->chart->setAxisLabel('', t('Hosts'))
|
$this->view->chart->setAxisLabel('', t('Hosts'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user