This commit is contained in:
Daniel Maya 2023-06-19 17:31:26 +02:00
parent 6ca91b89ec
commit c28730a081
2 changed files with 14 additions and 9 deletions

View File

@ -308,6 +308,8 @@ class AgentHive extends Widget
window.open(url); window.open(url);
} }
}); });
$("div [id*=hiveImg_] svg path").css("fill", "#99A3BE");
}); });
</script>'; </script>';
@ -403,16 +405,18 @@ class AgentHive extends Widget
// OS and alias. // OS and alias.
$output .= '<div class="widget-agent-hive-square-info-body">'; $output .= '<div class="widget-agent-hive-square-info-body">';
$output .= ui_print_os_icon( $icon = (string) db_get_value(
$data['id_os'], 'icon_name',
false, 'tconfig_os',
true, 'id_os',
true, (int) $data['id_os']
false,
false,
false,
['style' => 'margin-right: 5px;']
); );
$output .= '<div id="hiveImg_'.$id.'"
style="width:20px;height:20px;margin-right: 5px;">';
$output .= file_get_contents(
ui_get_full_url('images/'.$icon)
);
$output .= '</div>';
$output .= ui_print_truncate_text( $output .= ui_print_truncate_text(
ucfirst(io_safe_output($data['alias'])), ucfirst(io_safe_output($data['alias'])),
12, 12,

View File

@ -684,6 +684,7 @@ form.modal-dashboard
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin-left: 5px;
} }
.widget-agent-hive-square-info-header { .widget-agent-hive-square-info-header {