fixed visual error

This commit is contained in:
marcos 2021-03-18 10:48:44 +01:00
parent 13575a457c
commit bac8b98ad2
1 changed files with 35 additions and 15 deletions

View File

@ -232,83 +232,103 @@ $edit_capable = (bool) (
if ($pure === false) { if ($pure === false) {
if ($edit_capable === true) { if ($edit_capable === true) {
$disabled = false;
if ($config['style'] === 'pandora_black') {
$disabled = true;
}
echo '<div id ="edit-vc">'; echo '<div id ="edit-vc">';
echo '<div id ="edit-controls" class="visual-console-edit-controls" style="visibility:hidden">'; echo '<div id ="edit-controls" class="visual-console-edit-controls" style="visibility:hidden">';
echo '<div>'; echo '<div>';
visual_map_print_button_editor_refactor( visual_map_print_button_editor_refactor(
'STATIC_GRAPH', 'STATIC_GRAPH',
__('Static Image'), __('Static Image'),
'camera_min link-create-item' 'camera_min link-create-item',
$disabled
); );
visual_map_print_button_editor_refactor( visual_map_print_button_editor_refactor(
'PERCENTILE_BAR', 'PERCENTILE_BAR',
__('Percentile Item'), __('Percentile Item'),
'percentile_item_min link-create-item' 'percentile_item_min link-create-item',
$disabled
); );
visual_map_print_button_editor_refactor( visual_map_print_button_editor_refactor(
'MODULE_GRAPH', 'MODULE_GRAPH',
__('Module Graph'), __('Module Graph'),
'graph_min link-create-item' 'graph_min link-create-item',
$disabled
); );
visual_map_print_button_editor_refactor( visual_map_print_button_editor_refactor(
'DONUT_GRAPH', 'DONUT_GRAPH',
__('Serialized pie graph'), __('Serialized pie graph'),
'donut_graph_min link-create-item' 'donut_graph_min link-create-item',
$disabled
); );
visual_map_print_button_editor_refactor( visual_map_print_button_editor_refactor(
'BARS_GRAPH', 'BARS_GRAPH',
__('Bars Graph'), __('Bars Graph'),
'bars_graph_min link-create-item' 'bars_graph_min link-create-item',
$disabled
); );
visual_map_print_button_editor_refactor( visual_map_print_button_editor_refactor(
'AUTO_SLA_GRAPH', 'AUTO_SLA_GRAPH',
__('Event history graph'), __('Event history graph'),
'auto_sla_graph_min link-create-item' 'auto_sla_graph_min link-create-item',
$disabled
); );
visual_map_print_button_editor_refactor( visual_map_print_button_editor_refactor(
'SIMPLE_VALUE', 'SIMPLE_VALUE',
__('Simple Value'), __('Simple Value'),
'binary_min link-create-item' 'binary_min link-create-item',
$disabled
); );
visual_map_print_button_editor_refactor( visual_map_print_button_editor_refactor(
'LABEL', 'LABEL',
__('Label'), __('Label'),
'label_min link-create-item' 'label_min link-create-item',
$disabled
); );
visual_map_print_button_editor_refactor( visual_map_print_button_editor_refactor(
'ICON', 'ICON',
__('Icon'), __('Icon'),
'icon_min link-create-item' 'icon_min link-create-item',
$disabled
); );
visual_map_print_button_editor_refactor( visual_map_print_button_editor_refactor(
'CLOCK', 'CLOCK',
__('Clock'), __('Clock'),
'clock_min link-create-item' 'clock_min link-create-item',
$disabled
); );
visual_map_print_button_editor_refactor( visual_map_print_button_editor_refactor(
'GROUP_ITEM', 'GROUP_ITEM',
__('Group'), __('Group'),
'group_item_min link-create-item' 'group_item_min link-create-item',
$disabled
); );
visual_map_print_button_editor_refactor( visual_map_print_button_editor_refactor(
'BOX_ITEM', 'BOX_ITEM',
__('Box'), __('Box'),
'box_item link-create-item' 'box_item link-create-item',
$disabled
); );
visual_map_print_button_editor_refactor( visual_map_print_button_editor_refactor(
'LINE_ITEM', 'LINE_ITEM',
__('Line'), __('Line'),
'line_item link-create-item' 'line_item link-create-item',
$disabled
); );
visual_map_print_button_editor_refactor( visual_map_print_button_editor_refactor(
'COLOR_CLOUD', 'COLOR_CLOUD',
__('Color cloud'), __('Color cloud'),
'color_cloud_min link-create-item' 'color_cloud_min link-create-item',
$disabled
); );
visual_map_print_button_editor_refactor( visual_map_print_button_editor_refactor(
'NETWORK_LINK', 'NETWORK_LINK',
__('Network link'), __('Network link'),
'network_link_min link-create-item' 'network_link_min link-create-item',
$disabled
); );
enterprise_include_once('include/functions_visual_map_editor.php'); enterprise_include_once('include/functions_visual_map_editor.php');
enterprise_hook( enterprise_hook(