fix: show the accelerate project box on the cloud console only

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7060
GitOrigin-RevId: 6718c5412d8541f0ab19f4d53e6afa20543b9e8c
This commit is contained in:
Luca Restagno 2022-11-28 13:59:16 +01:00 committed by hasura-bot
parent 25cc0b75d6
commit e27ed1eb5b

View File

@ -381,7 +381,9 @@ const ManageDatabase: React.FC<ManageDatabaseProps> = ({
}, [queryResponse.isSuccess, queryResponse.data]); }, [queryResponse.isSuccess, queryResponse.data]);
const showAccelerateProjectSection = const showAccelerateProjectSection =
!showCheckLatencyButton && !checkHighLatencySources(latencyCheckData); isCloudConsole(globals) &&
!showCheckLatencyButton &&
!checkHighLatencySources(latencyCheckData);
return ( return (
<RightContainer> <RightContainer>