#11467 fixed error message and advanced info section from tree view

This commit is contained in:
Jorge Rincon 2023-07-24 14:54:38 +02:00
parent 6b3b98ac04
commit 19c600fb9b
2 changed files with 6 additions and 4 deletions

View File

@ -621,7 +621,7 @@ if (check_login()) {
} }
if (empty($table->data)) { if (empty($table->data)) {
ui_print_error_message(__('No available data to show')); ui_print_empty_data(__('No available data to show'), '', false);
} else { } else {
ui_pagination( ui_pagination(
count($count), count($count),

View File

@ -892,11 +892,13 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
$table_advanced->head = []; $table_advanced->head = [];
$table_advanced->data = []; $table_advanced->data = [];
// Agent version. $row = [];
$row = []; // Agent version.
if (!empty($agent['agent_version'])) {
$row['title'] = __('Agent Version'); $row['title'] = __('Agent Version');
$row['data'] = $agent['agent_version']; $row['data'] = $agent['agent_version'];
$table_advanced->data['agent_version'] = $row; $table_advanced->data['agent_version'] = $row;
}
// Position Information. // Position Information.
if ($config['activate_gis']) { if ($config['activate_gis']) {
@ -976,7 +978,7 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
'', '',
'', '',
true, true,
false, empty($table_advanced->data),
'', '',
'white-box-content mrgn_top_0 mrgn_btn_0px border-bottom-gray', 'white-box-content mrgn_top_0 mrgn_btn_0px border-bottom-gray',
'white_table_flex' 'white_table_flex'