diff --git a/pandora_console/include/lib/Dashboard/Widgets/service_map.php b/pandora_console/include/lib/Dashboard/Widgets/service_map.php index 92209fcf93..f89ab78000 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/service_map.php +++ b/pandora_console/include/lib/Dashboard/Widgets/service_map.php @@ -104,6 +104,27 @@ class ServiceMapWidget extends Widget */ protected $gridWidth; + /** + * Cell ID. + * + * @var integer + */ + protected $cellId; + + /** + * Widget ID. + * + * @var integer + */ + protected $widgetId; + + /** + * Dashboard ID. + * + * @var integer + */ + protected $dashboardId; + /** * Construct. @@ -145,6 +166,15 @@ class ServiceMapWidget extends Widget // Grid Width. $this->gridWidth = $gridWidth; + // Cell Id. + $this->cellId = $cellId; + + // Widget ID. + $this->widgetId = $widgetId; + + // Dashboard ID. + $this->dashboardId = $dashboardId; + // Options. $this->values = $this->decoders($this->getOptionsWidget()); @@ -236,6 +266,14 @@ class ServiceMapWidget extends Widget ); } + $inputs[] = [ + 'label' => \ui_print_info_message( + __('ZOOM functionality is only available when there is only one such widget in the dashboard'), + '', + true + ), + ]; + $inputs[] = [ 'label' => __('Service'), 'arguments' => [ @@ -249,8 +287,10 @@ class ServiceMapWidget extends Widget ], ]; - // Show legend. - $inputs[] = [ + // TODO refactoriced services: Hidden legend. + /* + // Show legend. + $inputs[] = [ 'label' => __('Show legend'), 'arguments' => [ 'name' => 'showLegend', @@ -258,7 +298,8 @@ class ServiceMapWidget extends Widget 'type' => 'switch', 'value' => $values['showLegend'], ], - ]; + ]; + */ return $inputs; } @@ -275,8 +316,7 @@ class ServiceMapWidget extends Widget $values = parent::getPost(); $values['serviceId'] = \get_parameter('serviceId', 0); - $values['showLegend'] = \get_parameter_switch('showLegend'); - + // $values['showLegend'] = \get_parameter_switch('showLegend'); return $values; } @@ -314,10 +354,14 @@ class ServiceMapWidget extends Widget return $output; } - $output .= "
".__('Legend').' | '; $output .= "![]() |