@@ -50,6 +50,7 @@ const ConnectorsView: React.FC<ConnectorsViewProps> = ({
50
50
connectorsDefinitions,
51
51
} ) => {
52
52
const { hasFeature } = useFeatureService ( ) ;
53
+ const allowUpdateConnectors = hasFeature ( FeatureItem . AllowUpdateConnectors ) ;
53
54
54
55
const columns = React . useMemo (
55
56
( ) => [
@@ -61,7 +62,9 @@ const ConnectorsView: React.FC<ConnectorsViewProps> = ({
61
62
< ConnectorCell
62
63
connectorName = { cell . value }
63
64
img = { row . original . icon }
64
- hasUpdate = { Connector . hasNewerVersion ( row . original ) }
65
+ hasUpdate = {
66
+ allowUpdateConnectors && Connector . hasNewerVersion ( row . original )
67
+ }
65
68
isDeprecated = { Connector . isDeprecated ( row . original ) }
66
69
/>
67
70
) ,
@@ -82,7 +85,7 @@ const ConnectorsView: React.FC<ConnectorsViewProps> = ({
82
85
accessor : "dockerImageTag" ,
83
86
customWidth : 10 ,
84
87
} ,
85
- ...( hasFeature ( FeatureItem . AllowUpdateConnectors )
88
+ ...( allowUpdateConnectors
86
89
? [
87
90
{
88
91
Header : (
@@ -105,7 +108,7 @@ const ConnectorsView: React.FC<ConnectorsViewProps> = ({
105
108
]
106
109
: [ ] ) ,
107
110
] ,
108
- [ feedbackList , onUpdateVersion ]
111
+ [ feedbackList , onUpdateVersion , allowUpdateConnectors ]
109
112
) ;
110
113
111
114
const renderHeaderControls = ( section : "used" | "available" ) =>
@@ -116,7 +119,7 @@ const ConnectorsView: React.FC<ConnectorsViewProps> = ({
116
119
< CreateConnector type = { type } />
117
120
</ WithFeature >
118
121
{ ( hasNewConnectorVersion || isUpdateSuccess ) &&
119
- hasFeature ( FeatureItem . AllowUpdateConnectors ) && (
122
+ allowUpdateConnectors && (
120
123
< UpgradeAllButton
121
124
isLoading = { loading }
122
125
hasError = { ! ! error && ! loading }
0 commit comments