diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index f60db0b560..f6a29c11a2 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -301,8 +301,7 @@ function ui_print_message($message, $class='', $attributes='', $return=false, $t if (empty($message['no_close']) === false) { // Workaround. - $no_close_bool = false; - // $no_close_bool = (bool) $message['no_close']; + $no_close_bool = (bool) $message['no_close']; } if (empty($message['force_style']) === false) { diff --git a/pandora_console/include/javascript/tree/TreeController.js b/pandora_console/include/javascript/tree/TreeController.js index 06274600ed..fb930d9b08 100644 --- a/pandora_console/include/javascript/tree/TreeController.js +++ b/pandora_console/include/javascript/tree/TreeController.js @@ -1543,7 +1543,7 @@ var TreeController = { } else if (controller.tree.length == 0) { controller.recipient.empty(); controller.recipient.html( - "
" + controller.emptyMessage + "
" + "
" + controller.emptyMessage + "
" ); return; } diff --git a/pandora_console/include/lib/Dashboard/Widgets/tree_view.php b/pandora_console/include/lib/Dashboard/Widgets/tree_view.php index 12237ac6a9..18bc4f12c1 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/tree_view.php +++ b/pandora_console/include/lib/Dashboard/Widgets/tree_view.php @@ -684,7 +684,7 @@ class TreeViewWidget extends Widget 'dateFormat' => DATE_FORMAT_JS, 'userLanguage' => get_user_language(), 'translate' => [ - 'emptyMessage' => __('No data found'), + 'emptyMessage' => ui_print_info_message(['no_close' => true, 'message' => __('No data found.')], '', true), 'foundMessage' => $foundMessage, 'total' => [ 'agents' => __('Total agents'), diff --git a/pandora_console/include/styles/dashboards.css b/pandora_console/include/styles/dashboards.css index 8a4f042b80..58c11c4c00 100644 --- a/pandora_console/include/styles/dashboards.css +++ b/pandora_console/include/styles/dashboards.css @@ -954,6 +954,7 @@ input.resize_button { right: 6%; } +.recipent > div > table, .new-widget-message > div > table, .container-center > div > table { display: flex; @@ -961,6 +962,7 @@ input.resize_button { align-items: center; } +.recipent > div > table tr td > div, .new-widget-message > div > table tr td > div, .container-center > div > table tr td > div { position: absolute; @@ -1021,3 +1023,12 @@ ul.select2-selection__rendered > li.select2-selection__choice { #period_manual > input[type="text"] { box-sizing: border-box !important; } + +.recipent { + height: 100%; + width: 100%; + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; +}