@@ -4,12 +4,14 @@ import {Icon, Label, Text} from '@gravity-ui/uikit';
4
4
import { skipToken } from '@reduxjs/toolkit/query' ;
5
5
6
6
import { ButtonWithConfirmDialog } from '../../components/ButtonWithConfirmDialog/ButtonWithConfirmDialog' ;
7
+ import { DeveloperUiLink } from '../../components/DeveloperUiLink/DeveloperUiLink' ;
7
8
import { EntityStatus } from '../../components/EntityStatus/EntityStatus' ;
8
9
import { ResponseError } from '../../components/Errors/ResponseError' ;
9
10
import { InternalLink } from '../../components/InternalLink' ;
10
11
import { ResizeableDataTable } from '../../components/ResizeableDataTable/ResizeableDataTable' ;
11
12
import { TableSkeleton } from '../../components/TableSkeleton/TableSkeleton' ;
12
13
import routes , { createHref } from '../../routes' ;
14
+ import { backend } from '../../store' ;
13
15
import { selectTabletsWithFqdn , tabletsApi } from '../../store/reducers/tablets' ;
14
16
import { ETabletState } from '../../types/api/tablet' ;
15
17
import type { TTabletStateInfo } from '../../types/api/tablet' ;
@@ -41,6 +43,7 @@ const columns: DataTableColumn<TTabletStateInfo & {fqdn?: string}>[] = [
41
43
} ,
42
44
{
43
45
name : 'TabletId' ,
46
+ width : 230 ,
44
47
get header ( ) {
45
48
return i18n ( 'Tablet' ) ;
46
49
} ,
@@ -49,7 +52,17 @@ const columns: DataTableColumn<TTabletStateInfo & {fqdn?: string}>[] = [
49
52
row . TabletId &&
50
53
createHref ( routes . tablet , { id : row . TabletId } , { nodeId : row . NodeId , type : row . Type } ) ;
51
54
52
- return < InternalLink to = { tabletPath } > { row . TabletId } </ InternalLink > ;
55
+ return (
56
+ < EntityStatus
57
+ name = { row . TabletId ?. toString ( ) }
58
+ path = { tabletPath }
59
+ hasClipboardButton
60
+ showStatus = { false }
61
+ additionalControls = {
62
+ < DeveloperUiLink href = { `${ backend } /tablets?TabletID=${ row . TabletId } ` } />
63
+ }
64
+ />
65
+ ) ;
53
66
} ,
54
67
} ,
55
68
{
0 commit comments