File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -346,22 +346,36 @@ pub(crate) fn col_device<'a>(
346346 Row :: new ( )
347347 . spacing ( 10 )
348348 . push ( Text :: new ( format ! ( " {cs_info}" ) ) )
349- . push ( get_info_tooltip (
350- Column :: new ( )
351- . spacing ( 10 )
352- . push ( Text :: new ( link_type. full_print_on_one_line ( language) ) )
353- . push ( get_addresses_row ( link_type, cs. get_addresses ( ) ) )
354- . into ( ) ,
355- ) ) ,
349+ . push (
350+ // no tooltip for IPFIX (it has no link type and no addresses)
351+ if matches ! ( cs, CaptureSource :: Ipfix ( _) ) {
352+ None
353+ } else {
354+ Some ( get_info_tooltip (
355+ Column :: new ( )
356+ . spacing ( 10 )
357+ . push ( Text :: new ( link_type. full_print_on_one_line ( language) ) )
358+ . push ( get_addresses_row ( link_type, cs. get_addresses ( ) ) )
359+ . into ( ) ,
360+ ) )
361+ } ,
362+ ) ,
356363 ) ,
357364 )
358365 . push (
359- Column :: new ( )
360- . push (
361- Text :: new ( format ! ( "{}:" , active_filters_translation( language) ) )
362- . class ( TextType :: Subtitle ) ,
366+ // there are no filters for IPFIX
367+ if matches ! ( cs, CaptureSource :: Ipfix ( _) ) {
368+ None
369+ } else {
370+ Some (
371+ Column :: new ( )
372+ . push (
373+ Text :: new ( format ! ( "{}:" , active_filters_translation( language) ) )
374+ . class ( TextType :: Subtitle ) ,
375+ )
376+ . push ( Row :: new ( ) . push ( Text :: new ( " " ) ) . push ( filters_desc) ) ,
363377 )
364- . push ( Row :: new ( ) . push ( Text :: new ( " " ) ) . push ( filters_desc ) ) ,
378+ } ,
365379 )
366380}
367381
You can’t perform that action at this time.
0 commit comments