File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import useAppParams from 'lib/hooks/useAppParams' ;
33import { clusterConnectConnectorPath , ClusterNameRoute } from 'lib/paths' ;
4- import Table , { LinkCell , TagCell } from 'components/common/NewTable' ;
4+ import Table , { TagCell } from 'components/common/NewTable' ;
55import { FullConnectorInfo } from 'generated-sources' ;
66import { useConnectors } from 'lib/hooks/api/kafkaConnect' ;
77import { ColumnDef } from '@tanstack/react-table' ;
@@ -18,14 +18,7 @@ const kafkaConnectColumns: ColumnDef<FullConnectorInfo>[] = [
1818 {
1919 header : 'Name' ,
2020 accessorKey : 'name' ,
21- // cell: BreakableTextCell,
22- cell : ( { getValue } ) => (
23- < LinkCell
24- wordBreak
25- value = { `${ getValue < string | number > ( ) } ` }
26- to = { encodeURIComponent ( `${ getValue < string | number > ( ) } ` ) }
27- />
28- ) ,
21+ cell : BreakableTextCell ,
2922 enableResizing : true ,
3023 } ,
3124 {
Original file line number Diff line number Diff line change 77 clusterACLPath ,
88 clusterBrokersPath ,
99 clusterConnectorsPath ,
10+ clusterConnectsPath ,
1011 clusterConsumerGroupsPath ,
1112 clusterKsqlDbPath ,
1213 clusterSchemasPath ,
@@ -81,7 +82,10 @@ const ClusterMenu: FC<ClusterMenuProps> = ({
8182 ) }
8283 { hasFeatureConfigured ( ClusterFeaturesEnum . KAFKA_CONNECT ) && (
8384 < MenuItem
84- isActive = { getIsMenuItemActive ( clusterConnectorsPath ( name ) ) }
85+ isActive = {
86+ getIsMenuItemActive ( clusterConnectorsPath ( name ) ) ||
87+ getIsMenuItemActive ( clusterConnectsPath ( name ) )
88+ }
8589 to = { clusterConnectorsPath ( name ) }
8690 title = "Kafka Connect"
8791 />
Original file line number Diff line number Diff line change @@ -219,6 +219,12 @@ export const clusterConnectsPath = (
219219export const clusterConnectorsPath = (
220220 clusterName : ClusterName = RouteParams . clusterName
221221) => `${ clusterPath ( clusterName ) } /connectors` ;
222+ export const clusterConnectorNameSubPath = (
223+ clusterName : ClusterName = RouteParams . connectorName
224+ ) => {
225+ return `${ clusterName } /connectors` ;
226+ } ;
227+
222228export const clusterConnectorNewPath = (
223229 clusterName : ClusterName = RouteParams . clusterName
224230) => `${ clusterConnectorsPath ( clusterName ) } /create-new` ;
You can’t perform that action at this time.
0 commit comments