Skip to content

Commit 258eab8

Browse files
Remove red indicators for connectors in cloud (#9939)
* Remove red indicators for connectors in cloud
1 parent edfe96b commit 258eab8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

airbyte-webapp/src/pages/SettingsPage/pages/ConnectorsPage/components/ConnectorsView.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const ConnectorsView: React.FC<ConnectorsViewProps> = ({
5050
connectorsDefinitions,
5151
}) => {
5252
const { hasFeature } = useFeatureService();
53+
const allowUpdateConnectors = hasFeature(FeatureItem.AllowUpdateConnectors);
5354

5455
const columns = React.useMemo(
5556
() => [
@@ -61,7 +62,9 @@ const ConnectorsView: React.FC<ConnectorsViewProps> = ({
6162
<ConnectorCell
6263
connectorName={cell.value}
6364
img={row.original.icon}
64-
hasUpdate={Connector.hasNewerVersion(row.original)}
65+
hasUpdate={
66+
allowUpdateConnectors && Connector.hasNewerVersion(row.original)
67+
}
6568
isDeprecated={Connector.isDeprecated(row.original)}
6669
/>
6770
),
@@ -82,7 +85,7 @@ const ConnectorsView: React.FC<ConnectorsViewProps> = ({
8285
accessor: "dockerImageTag",
8386
customWidth: 10,
8487
},
85-
...(hasFeature(FeatureItem.AllowUpdateConnectors)
88+
...(allowUpdateConnectors
8689
? [
8790
{
8891
Header: (
@@ -105,7 +108,7 @@ const ConnectorsView: React.FC<ConnectorsViewProps> = ({
105108
]
106109
: []),
107110
],
108-
[feedbackList, onUpdateVersion]
111+
[feedbackList, onUpdateVersion, allowUpdateConnectors]
109112
);
110113

111114
const renderHeaderControls = (section: "used" | "available") =>
@@ -116,7 +119,7 @@ const ConnectorsView: React.FC<ConnectorsViewProps> = ({
116119
<CreateConnector type={type} />
117120
</WithFeature>
118121
{(hasNewConnectorVersion || isUpdateSuccess) &&
119-
hasFeature(FeatureItem.AllowUpdateConnectors) && (
122+
allowUpdateConnectors && (
120123
<UpgradeAllButton
121124
isLoading={loading}
122125
hasError={!!error && !loading}

0 commit comments

Comments
 (0)