Added new items to visual consoles

This commit is contained in:
Enrique Martin 2023-12-03 21:43:00 +01:00
parent 14fc8ef2b1
commit b14c77862e
1 changed files with 13 additions and 0 deletions

View File

@ -2066,6 +2066,7 @@ if ($action === 'create_demo_data') {
'label' => 4,
'icon' => 5,
'bubble' => 9,
'box' => 12,
'event_history' => 14,
'circular_progress_bar' => 15,
'circular_progress_bar_int' => 16,
@ -2398,6 +2399,16 @@ if ($action === 'create_demo_data') {
}
}
if ($items_array['type'] === 'box') {
if (isset($items_array['border_color']) === true) {
$element_values['border_color'] = $items_array['border_color'];
}
if (isset($items_array['fill_color']) === true) {
$element_values['fill_color'] = $items_array['fill_color'];
}
}
if ($items_array['type'] === 'icon') {
if (isset($items_array['image']) === false
|| is_string($items_array['image']) === false
@ -2485,6 +2496,8 @@ if ($action === 'create_demo_data') {
$element_values['height'] = $items_array['height'];
}
$element_values['show_on_top'] = (isset($items_array['show_on_top']) === true && $items_array['show_on_top'] === true) ? 1 : 0;
// Check here percentile items as height is used for max value
if ($items_array['type'] === 'percentile' || $items_array['type'] === 'bubble' || $items_array['type'] === 'circular_progress_bar' || $items_array['type'] === 'circular_progress_bar_int') {
if (isset($items_array['agent_name']) === true) {