mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-13 11:07:11 +03:00
SchemaRegistry bugfix cherrypick(v2.33)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10621 GitOrigin-RevId: c7787e15a8bd3aa207bdca546d9b90b7026d504a
This commit is contained in:
parent
75b7e761a5
commit
4f23aceed2
@ -7,7 +7,7 @@ import { IconTooltip } from '../../../new-components/Tooltip';
|
||||
import { FaExclamationCircle, FaRegMap } from 'react-icons/fa';
|
||||
import { sendTelemetryEvent } from '../../../telemetry';
|
||||
import { useGetSchemaRegistryNotificationColor } from '../../../features/SchemaRegistry/hooks/useGetSchemaRegistryNotificationColor';
|
||||
import { getLSItem, LS_KEYS, setLSItem } from '../../../utils';
|
||||
import { getLSItem, isCloudConsole, LS_KEYS, setLSItem } from '../../../utils';
|
||||
import {
|
||||
BreakingChangesColor,
|
||||
BreakingChangesTooltipMessage,
|
||||
@ -39,12 +39,6 @@ const TopNav: React.FC<TopNavProps> = ({ location }) => {
|
||||
dataTestVal: 'rest-explorer-link',
|
||||
title: 'REST',
|
||||
},
|
||||
{
|
||||
key: 'schema-registry',
|
||||
link: '/api/schema-registry',
|
||||
dataTestVal: 'schema-registry-link',
|
||||
title: 'Schema Registry',
|
||||
},
|
||||
],
|
||||
[
|
||||
{
|
||||
@ -63,6 +57,18 @@ const TopNav: React.FC<TopNavProps> = ({ location }) => {
|
||||
dataTestVal: 'security-explorer-link',
|
||||
title: 'Security',
|
||||
});
|
||||
|
||||
if (
|
||||
isCloudConsole(globals) &&
|
||||
(globals.userRole === 'admin' || globals.userRole === 'owner')
|
||||
) {
|
||||
sectionsData[0].push({
|
||||
key: 'schema-registry',
|
||||
link: '/api/schema-registry',
|
||||
dataTestVal: 'schema-registry-link',
|
||||
title: 'Schema Registry',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
const isActive = (link: string) => {
|
||||
|
Loading…
Reference in New Issue
Block a user